sphere
Create sphere
Description
Create Sphere Data
[X,Y,Z] = sphere returns the x-,
y-, and z- coordinates of a sphere
without drawing it. The returned sphere has a radius equal to
1 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 sphere using the returned coordinates, use the
surf or mesh functions.
Plot Spheres
sphere(___) plots the sphere without
returning the coordinates. Use this syntax with any of the input arguments in
previous syntaxes.
sphere(___,
sets properties of the plot using one or more name-value arguments. For example,
you can specify the color and transparency of the sphere. For a list of
properties, see Surface Properties. (since R2024b)Name=Value)









