Fill the interior of a cylinder surface - SURF - generated by parametric equations
Mostrar comentarios más antiguos
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 comentarios
William
el 5 de Mzo. de 2015
Brendan Hamm
el 5 de Mzo. de 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
el 5 de Mzo. de 2015
Or do you mean that you want to cap the ends so it looks solid?
William
el 6 de Mzo. de 2015
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
