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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2ezplot3<br />

Purpose Easy to use 3-D parametric curve plotter<br />

Syntax ezplot3(x,y,z)<br />

ezplot3(x,y,z,[tmin,tmax])<br />

ezplot3(...,'animate')<br />

Description ezplot3(x,y,z) plots the spatial curve x = x(t), y = y(t), and z = z(t) over the<br />

default domain 0 < t < 2π.<br />

ezplot3<br />

ezplot3(x,y,z,[tmin,tmax]) plots the curve x = x(t), y = y(t), and z = z(t) over<br />

the domain tmin < t < tmax.<br />

ezplot3(...,'animate') produces an animated trace of the spatial curve.<br />

Remarks Array multiplication, division, and exponentiation are always implied in the<br />

expression you pass to ezplot3. For example, the <strong>MATLAB</strong> syntax for a plot of<br />

the expression,<br />

x = s./2, y = 2.*s, z = s.^2;<br />

which represents a parametric function, is written as:<br />

ezplot3('s/2','2*s','s^2')<br />

That is, s/2 is interpreted as s./2 in the string you pass to ezplot3.<br />

Examples This example plots the parametric curve,<br />

x =<br />

sint,<br />

y = cost,<br />

z = t<br />

over the domain [0,6π]:<br />

ezplot3('sin(t)','cos(t)','t',[0,6*pi])<br />

2-529

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

Saved successfully!

Ooh no, something went wrong!