Fill the interior of a cylinder surface - SURF - generated by parametric equations
Show older comments
I've generated a cylinder using the parametric equations:
u = linspace(0,2*pi,50);
v = linspace(0,2*pi,50);
[u,v] = meshgrid(u,v);
x = cos(u);
y = sin(u);
z = v;
where u and v are 0-pi.
I've got a plot surf(x,y,z) of this cylinder and I want to fill all the interior points. Does anyone know how I can do this?
How can I do this?
4 Comments
William
on 5 Mar 2015
Brendan Hamm
on 5 Mar 2015
By fill the interior points, do you mean you want each (x,y,z) pair inside to contain a marker of some sort or do you want there to be surfaces at each of the heights in z?
Andrew Newell
on 5 Mar 2015
Or do you mean that you want to cap the ends so it looks solid?
William
on 6 Mar 2015
Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!