12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

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.

ezsurfcArray multiplication, division, and exponentiation are always implied in theexpression you pass to ezsurfc. For example, the <strong>MATLAB</strong> syntax for asurface/contour plot of the experssion,sqrt(x.^2 + y.^2);is written as:ezsurfc('sqrt(x^2 + y^2)')That is, x^2 is interpreted as x.^2 in the string you pass to ezsurfc.ExamplesCreate a surface/contour plot of the expression,f( x,y)y= ---------------------------1 + x 2 + y 2over the domain -5 < x < 5, -2*pi < y < 2*pi, with a computational grid of size35-by-35:ezsurfc('y/(1 + x^2 + y^2)',[−5,5,−2*pi,2*pi],35)Use the mouse to rotate the axes to better observe the contour lines (thispicture uses a view of azimuth = -65.5 and elevation = 26)2-154

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

Saved successfully!

Ooh no, something went wrong!