Fill the interior of a cylinder surface - SURF - generated by parametric equations
이전 댓글 표시
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
William
2015년 3월 5일
Brendan Hamm
2015년 3월 5일
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
2015년 3월 5일
Or do you mean that you want to cap the ends so it looks solid?
William
2015년 3월 6일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
