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.

ezsurfArray multiplication, division, and exponentiation are always implied in theexpression you pass to ezsurf. For example, the <strong>MATLAB</strong> syntax for a surfaceplot of the expression,sqrt(x.^2 + y.^2);is written as:ezsurf('sqrt(x^2 + y^2)')That is, x^2 is interpreted as x.^2 in the string you pass to ezsurf.Examplesezsurf does not graph points where the mathematical function is not defined(these data points are set to NaNs, which <strong>MATLAB</strong> does not plot). This exampleillustrates this filtering of singularities/discontinuous points by graphing thefunction,f( x,y) = real( atan( x + iy))over the default domain -2π < x < 2π, -2π < y < 2π:ezsurf('real(atan(x+i*y))')real(atan(x+i y))210−1−250y−5−5x052-151

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

Saved successfully!

Ooh no, something went wrong!