try
    for i=0:10; a(i)=i; end;
catch
    disp('Something strange happened!')
end