| Contents | Index |
plot::Cylinder(r,
,
) creates a cylinder of radius
with an axis from the point
to the point
.
Call:
plot::Cylinder(r, [x1, y1, z1], [x2, y2, z2], <a = amin .. amax>, Options)
Parameters:
|
r: |
the radius of the cylinder: a real numerical value or an arithmetical expression of the animation parameter a. |
|
x1, y1, z1: |
components of the base center: real numerical values or expressions of the animation parameter a. |
|
x2, y2, z2: |
components of the top center: real numerical values or expressions of the animation parameter a. |
Related Domains:
plot::Cone, plot::Prism, plot::Pyramid
Related Functions:
Details:
The base center and top center of the cylinder can also be passed as vectors.
A cylinder created by plot::Cylinder consists of the lateral surface and the “lids” (discs with centers
and
, respectively.)
Example 1
We plot three cylinders with symmetry axes given by the coordinate axes:
plot(plot::Cylinder(1, [-3, 0, 0], [3, 0, 0],
Color = RGB::Red),
plot::Cylinder(1, [0, -4, 0], [0, 4, 0],
Color = RGB::Green),
plot::Cylinder(1, [0, 0, -5], [0, 0, 5],
Color = RGB::Blue)):

Example 2
All parameters of a cylinder can be animated:
plot(plot::Cylinder(a, [0, 0, a], [0, 0, 3 - a],
a = 1 .. 2))



Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |