1个回答
2013-05-21
展开全部
% 圆柱
t=ones(1,40)*5;
[x,y,z]=cylinder(t);
c=ones(size(z));
surf(x,y,z,c)
shading faceted
title('圆柱')
axis off
% 椭球
t=linspace(0,pi,100);
[x,y,z]=cylinder(sin(t)/4);
c=ones(size(z));
mesh(x,y,z,c)
shading faceted
title('椭球') axis equal
axis off
t=ones(1,40)*5;
[x,y,z]=cylinder(t);
c=ones(size(z));
surf(x,y,z,c)
shading faceted
title('圆柱')
axis off
% 椭球
t=linspace(0,pi,100);
[x,y,z]=cylinder(sin(t)/4);
c=ones(size(z));
mesh(x,y,z,c)
shading faceted
title('椭球') axis equal
axis off
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询