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.

Variables<br />

Locking the M-file in memory with mlock prevents any persistent variables<br />

defined in the file from being reinitialized.<br />

Global Variables<br />

Use global variables sparingly. The global workspace is shared by all of<br />

your functions and also by your interactive <strong>MATLAB</strong> session. The more<br />

global variables you use, the greater the chances of unintentionally reusing a<br />

variable name, thus leaving yourself open to having those variables change in<br />

valueunexpectedly.Thiscanbeadifficultbugtotrackdown.<br />

For more information: See “Global Variables” on page 3-4 in the <strong>MATLAB</strong><br />

<strong>Programming</strong> documentation.<br />

12-29

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

Saved successfully!

Ooh no, something went wrong!