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

Create successful ePaper yourself

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

ezmesh<br />

2-524<br />

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

is written as:<br />

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

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

Examples This example visualizes the function,<br />

2<br />

–<br />

f ( x, y)<br />

xe x<br />

=<br />

with a mesh plot drawn on a 40-by-40 grid. The mesh lines are set to a uniform<br />

blue color by setting the colormap to a single color:<br />

ezmesh('x*exp(-x^2-y^2)',40)<br />

colormap [0 0 1]<br />

0.5<br />

0<br />

−0.5<br />

2<br />

1<br />

0<br />

y<br />

–<br />

y 2<br />

−1<br />

−2<br />

x exp(−x 2 − y 2 )<br />

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

mesh<br />

−2<br />

x<br />

0<br />

2

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

Saved successfully!

Ooh no, something went wrong!