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.

4 M-File <strong>Programming</strong><br />

3 Type inmem to display all M-files that were used when the function ran. If<br />

you want to see what MEX-files were used as well, specify an additional<br />

output:<br />

[mfiles, mexfiles] = inmem<br />

Detailed Display of M-File Dependencies<br />

For a much more detailed display of dependent function information, use the<br />

depfun function. In addition to M-files, depfun shows which built-ins and<br />

classes a particular function depends on:<br />

[list, builtins, classes] = depfun('strtok.m');<br />

list<br />

list =<br />

'D:\matlabR14\toolbox\matlab\strfun\strtok.m'<br />

'D:\matlabR14\toolbox\distcomp\toChar.m'<br />

'D:\matlabR14\toolbox\matlab\datafun\prod.m'<br />

'D:\matlabR14\toolbox\matlab\datatypes\@opaque\char.m'<br />

.<br />

.<br />

.<br />

4-22

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

Saved successfully!

Ooh no, something went wrong!