MATLAB Function Reference |
Syntax
[x,y,z] = ellipsoid(xc,yc,zc,xr,yr,zr,n) [x,y,z] = ellipsoid(xc,yc,zc,xr,yr,zr) ellipsoid(axes_handle,...) ellipsoid(...)
Description
[x,y,z] = ellipsoid(xc,yc,zc,xr,yr,zr,n)
generates three n+1
-by-n+1
matrices so that surf(x,y,z)
produces an ellipsoid with center (xc,yc,zc)
and radii (xr,yr,zr)
.
[x,y,z] = ellipsoid(xc,yc,zc,xr,yr,zr)
uses n = 20
.
ellipsoid(axes_handle,...)
plots into the axes with handle axes_handle
instead of the current axes (gca
).
ellipsoid(...)
with no output arguments graphs the ellipsoid as a surface.
Algorithm
ellipsoid
generates the data using the following equation:
See Also
Polygons and Surfaces for related functions
ellipke | else |
© 1994-2005 The MathWorks, Inc.