23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

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.

3 Basic Program Components<br />

Program Termination — return<br />

Program termination control enables you to exit from your program at some<br />

point prior to its normal termination point.<br />

return<br />

After a <strong>MATLAB</strong> function runs to completion, it terminates and returns<br />

control either to the function that called it, or to the keyboard. If you need to<br />

exit a function prior to the point of normal completion, you can force an early<br />

termination using the return function. return immediately terminates the<br />

current sequence of commands and exits the currently running function.<br />

return is also used to terminate keyboard mode.<br />

3-96

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

Saved successfully!

Ooh no, something went wrong!