r=1
x=r*sin(t).^2
y=r*sin(t).*cos(t)
z=r*cos(t)
hold on
q=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 offlighting gouraudalpha .2camlight headlight
h=legend('维维安尼曲线','圆柱面','球面芹棚','location','northoutside','Orientation','horizontal')
set(h,'color','none','box','off')
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)