Create ellipsoid
[X,Y,Z] = ellipsoid(
returns the x-, y-, and
z-coordinates of an ellipsoid without drawing it. The returned
ellipsoid has center coordinates at xc,yc,zc
,xr,yr,zr
)(xc,yc,zc)
, semiaxis lengths
(xr,yr,zr)
, and consists of 20-by-20 faces.
The function returns the x-, y-, and
z- coordinates as three
21
-by-21
matrices.
To draw the ellipsoid using the returned coordinates, use the
surf
or mesh
functions.
ellipsoid
generates the data using this equation:
ellipsoid(0,0,0,1,1,1)
is equivalent to a unit sphere.