23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Working with M-Files<br />

parses average.m and saves the resulting pseudocode to the file named<br />

average.p. This saves <strong>MATLAB</strong> from reparsing average.m the first time you<br />

call it in each session.<br />

<strong>MATLAB</strong> is very fast at parsing so the pcode function rarely makes much<br />

of a speed difference.<br />

One situation where pcode does provide a speed benefit is for large GUI<br />

applications. In this case, many M-files must be parsed before the application<br />

becomes visible.<br />

You can also use pcode to hide algorithms you have created in your M-file, if<br />

you need to do this for proprietary reasons.<br />

4-17

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

Saved successfully!

Ooh no, something went wrong!