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.

ezsurfc<br />

2-536<br />

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

is written as:<br />

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

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

Examples Create a surface/contour plot of the expression,<br />

f( x, y)<br />

y<br />

1 x 2<br />

y 2<br />

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

+ +<br />

over the domain -5 < x < 5, -2*pi < y < 2*pi, with a computational grid of size<br />

35-by-35:<br />

ezsurfc('y/(1 + x^2 + y^2)',[−5,5,−2*pi,2*pi],35)<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 />

0<br />

y<br />

y/(1 + x 2 + y 2 )<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!