[X,Y,Z] = cylinder(r) function explanation
Show older comments
What does the [X,Y,Z]=cylinder(r) function do for a given variable r intuitively? The explanation on the function page isn't very clear, I'm not sure what they mean by a profile curve. And further, what would doing, say, mesh(X) produce?
Accepted Answer
More Answers (1)
Manuel Cornejo Muñoz
on 22 Oct 2019
0 votes
But the example that provides Mathworks in Getting Started is not so obvious. Take a look at subplot z. You see:
t = 0:pi/10:2*pi;
[X,Y,Z] = cylinder(4*cos(t));
subplot(2,2,1); mesh(X); title('X');
subplot(2,2,2); mesh(Y); title('Y');
subplot(2,2,3); mesh(Z); title('Z');
subplot(2,2,4); mesh(X,Y,Z); title('X,Y,Z');
Categories
Find more on Argument Definitions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!