MATLAB cylinder()

cylinder creates x, y, and z coordinates of the unit cylinder. We can draw the cylindrical object using surf or mesh, or draw it immediately by not providing output arguments.

Syntax

Example

Output:

MATLAB cylinder()
Next TopicMATLAB slice()