Create cylinder
[X,Y,Z] = cylinder
returns the x-,
y-, and z- coordinates of a cylinder
without drawing it. The returned cylinder has a radius equal to
1
, 20 equally spaced points around its circumference, and
bases parallel to the xy-plane.
The function returns the x-, y-, and
z- coordinates as three
21
-by-21
matrices.
To draw the cylinder using the returned coordinates, use the
surf
or mesh
functions.
[X,Y,Z] = cylinder(
returns the
x-, y-, and z-
coordinates of a cylinder with the specified profile curve,
r
)r
, and 20 equally spaced points around its
circumference. The function treats each element in r
as a
radius at equally spaced heights along the unit height of the cylinder.