slogan 专业知识问答平台!
佰学网 >生活问答 > 知识 > MATLAB怎样画维维安尼

MATLAB怎样画维维安尼

原创 2022-03-03 15:56:41
t=linspace(0,2*pi,73);r=1;x=r*sin(t).^2;.. 精选答案
  • 问题相关

t=linspace(0,2*pi,73);r=1;x=r*sin(t).^2;y=r*sin(t).*cos(t);z=r*cos(t);plot3(x,y,z)%维维安尼曲线hold onq=linspace(-1,1,73);[t,q]=meshgrid(t,z);mesh(r/2*(cos(t)+1),r/2*sin(t),q,'edgecolor','none','facecolor','r')[x,y,z]=sphere(73);mesh(x,y,z,'edgecolor','none','facecolor','y');axis equal off;lighting gouraud;alpha .2;camlight headlighth=legend('维维安尼曲线','圆柱面','球面','location','northoutside','Orientation','horizontal');set(h,'color','none','box','off')

©本文版权归作者所有,任何形式转载请联系我们:xiehuiyue@offercoming.com。

相关内容推荐

来自百学网

刘老师

刘老师

中国人大教育学硕士

关注

你可能关心