I have a matlab script that calls various other function. I am handling possible error in the following way
try
matStart(MatObj);
catch err
msgbox('Error in Processing Figures!','Error!','error','modal');
fprintf(2,err.message);
sprintf('\n');
display(err.message);
end
as you can probably guess, this prints the error that caused the exception.But this only prints the very first function that caused the error. I want the whole error stack to be shown down to the last nested function that caused the error to occur. Can tis be done?