% This can be useful for debugging purposes. Stop a script for debugging if an error is thrown
dbstop if error

% Here we purposely try to create a matrix than won't fit in memory
disp('Trying to create 8 Tb matrix')
N=2^20;
zeros(N,N);

% We shouldn't reach this point
disp('Succeeded')
