Is there a way to just automatically exit matlab if an error occurs? Or something like resume on error?
Note that when you use -r, you can include multiple statements to be
executed by putting them in double quotes.
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/f8-4994.html
The command [matlab -r "try, unmodifiableCodeThatMayError, catch,
handleTheError, end, exit"] should do what you want (for appropriate values
of unmodifiableCodeThatMayError and handleTheError, of course.)
--
Steve Lord
sl...@mathworks.com
"Steven Lord" <sl...@mathworks.com> wrote in message <gqdp2u$4q2$1...@fred.mathworks.com>...