cylinder
Create cylinder.
📝Syntax
[X, Y, Z] = cylinder()
[X, Y, Z] = cylinder(r)
[X, Y, Z] = cylinder(r, n)
cylinder()
cylinder(r)
cylinder(r, n)
cylinder(ax, ...)
📥Input Arguments
Parameter Description
r Profile curve: vector.
n Number of points: positive whole number.
ax Target axes: 'axes' object.
📤Output Arguments
Parameter Description
X, Y, Z x-, y-, and z- coordinates of a cylinder without drawing it.
📄Description

cylinder creates cylinder and plots it.

💡Examples
f1 = figure();
colormap(spring)
cylinder()
Example illustration
f2 = figure();
colormap(summer)
r = 4;
cylinder(r);
Example illustration
🔗See Also
spheresurf
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub