23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

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.

ezmeshc<br />

2-526<br />

sqrt(x.^2 + y.^2);<br />

is written as:<br />

ezmeshc('sqrt(x^2 + y^2)')<br />

That is, x^2 is interpreted as x.^2 in the string you pass to ezmeshc.<br />

Examples Create a mesh/contour graph of the expression,<br />

f( x, y)<br />

over the domain -5 < x < 5, -2*pi < y < 2*pi:<br />

ezmeshc('y/(1 + x^2 + y^2)',[−5,5,−2*pi,2*pi])<br />

Use the mouse to rotate the axes to better observe the contour lines (this<br />

picture uses a view of azimuth = -65.5 and elevation = 26).<br />

0.5<br />

0<br />

−0.5<br />

5<br />

y<br />

1 x 2<br />

y 2<br />

= ---------------------------<br />

+ +<br />

0<br />

y<br />

y/(1 + x 2 + y 2 )<br />

See Also ezcontour, ezcontourf, ezmesh, ezplot, ezplot3, ezpolar, ezsurf, ezsurfc,<br />

meshc<br />

−5<br />

−5<br />

0<br />

x<br />

5

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

Saved successfully!

Ooh no, something went wrong!