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.

ezplotPurpose2ezplotEasy to use function plotterSyntaxezplot(f)ezplot(f,[min,max])ezplot(f,[xmin,xmax,ymin,ymax])ezplot(x,y)ezplot(x,y,[tmin,tmax])ezplot(...,figure)Description ezplot(f) plots the expression f = f(x) over the default domain: -2π < x < 2π.ezplot(f,[min,max]) plots f = f(x) over the domain: min < x < max.For implicitly defined functions, f = f(x,y):ezplot(f) plots f(x,y) = 0 over the default domain -2π < x < 2π, -2π < y < 2π.ezplot(f,[xmin,xmax,ymin,ymax]) plots f(x,y) = 0 over xmin < x < xmax andymin < y < ymax.ezplot(f,[min,max])plots f(x,y) = 0 over min < x < max and min < y < max.If f is a function of the variables u and v (rather than x and y), then the domainendpoints umin, umax, vmin, and vmax are sorted alphabetically. Thus,ezplot('u^2 - v^2 - 1',[-3,2,-2,3]) plots u 2 - v 2 - 1 = 0 over -3 < u < 2, -2< v < 3.ezplot(x,y) plots the parametrically defined planar curve x = x(t) and y = y(t)over the default domain 0 < t < 2π.ezplot(x,y,[tmin,tmax]) plots x = x(t) and y = y(t) over tmin < t < tmax.ezplot(...,figure) plots the given function over the specified domain in thefigure window identified by the handle figure.RemarksArray multiplication, division, and exponentiation are always implied in theexpression you pass to ezplot. For example, the <strong>MATLAB</strong> syntax for a plot ofthe expression,x.^2 - y.^2which represents an implicitly defined function, is written as:ezplot('x^2 - y^2')2-145

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

Saved successfully!

Ooh no, something went wrong!