From: Nick Spencer on
I have a real-time GUI application where it is useless for the Matlab console to sit waiting at the prompt after an error occurs, because the user only understands clicking buttons, etc. So I'm after an analog to the "dbstop if error" command, so that Matlab quits after an error. (Then the user restarts the application, and I'll examine the logfile for the error message.) Any ideas?

TIA
From: Matt Fig on
try
A(nan) = 9;
catch
quit
end