23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2catch<br />

Purpose Begin catch block<br />

Description The general form of a try statement is:<br />

try,<br />

statement,<br />

...,<br />

statement,<br />

catch,<br />

statement,<br />

...,<br />

statement,<br />

end<br />

Normally, only the statements between the try and catch are executed.<br />

However, if an error occurs while executing any of the statements, the error is<br />

captured into lasterr, and the statements between the catch and end are<br />

executed. If an error occurs within the catch statements, execution stops<br />

unless caught by another try...catch block. The error string produced by a<br />

failed try block can be obtained with lasterr.<br />

See Also end, eval, evalin, try<br />

catch<br />

2-213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!