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.

5<br />

Types of Functions<br />

Thebasicfunctiontypesthatyoucanworkwithin<strong>MATLAB</strong>are<br />

Overview of <strong>MATLAB</strong> Function<br />

Types (p. 5-2)<br />

Anonymous Functions (p. 5-3)<br />

Primary M-File Functions (p. 5-15)<br />

Nested Functions (p. 5-16)<br />

Subfunctions (p. 5-33)<br />

Private Functions (p. 5-35)<br />

Overloaded Functions (p. 5-37)<br />

An introduction to the basic types of<br />

functions available with <strong>MATLAB</strong><br />

Functions defined from a <strong>MATLAB</strong><br />

expression and without requiring an<br />

M-file<br />

The first, and often the main,<br />

function in an M-file<br />

Functions defined within the body of<br />

another function<br />

Any functions that follow the<br />

primary function in an M-file<br />

Functions with restricted access,<br />

callable only from an M-file function<br />

in the parent directory<br />

Functions with multiple<br />

implementations that respond to<br />

different types of inputs accordingly

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

Saved successfully!

Ooh no, something went wrong!