ellipsoid
Create ellipsoid
Syntax
Description
Create Ellipsoid Data
[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.
Plot Ellipsoids
ellipsoid(___)
plots the ellipsoid without returning
the coordinates. Use this syntax with any of the previous input arguments in previous
syntaxes.
ellipsoid(___,
sets
properties of the ellipsoid plot using one or more name-value arguments. For example, you
can specify the color and transparency of the ellipsoid. For a list of properties, see
Surface Properties. (since R2024b)Name=Value
)
Examples
Input Arguments
Name-Value Arguments
Algorithms
ellipsoid
generates the data using this equation:
ellipsoid(0,0,0,1,1,1)
is equivalent to a unit sphere.