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

Create successful ePaper yourself

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

ezmeshcArray multiplication, division, and exponentiation are always implied in theexpression you pass to ezmeshc. For example, the <strong>MATLAB</strong> syntax for a mesh/contour plot of the expression,sqrt(x.^2 + y.^2);is written as:ezmeshc('sqrt(x^2 + y^2)')That is, x^2 is interpreted as x.^2 in the string you pass to ezmeshc.ExamplesCreate a mesh/contour graph of the expression,f( x,y)=y---------------------------1 + x 2 + y 2over the domain -5 < x < 5, -2*pi < y < 2*pi:ezmeshc('y/(1 + x^2 + y^2)',[−5,5,−2*pi,2*pi])Use the mouse to rotate the axes to better observe the contour lines (thispicture uses a view of azimuth = -65.5 and elevation = 26).y/(1 + x 2 + y 2 )0.505−0.550y−5−50x2-143

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

Saved successfully!

Ooh no, something went wrong!