15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

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.

4 Function Functions<br />

You can also create anonymous functions <strong>of</strong> more than one argument. The<br />

following function has two input arguments x and y.<br />

fh = @(x,y)y*sin(x)+x*cos(y);<br />

fh(pi,2*pi)<br />

ans =<br />

3.1416<br />

4-4

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

Saved successfully!

Ooh no, something went wrong!