matlab实例--绘制球面
发布时间
阅读量:
阅读量
close all
[X1,Y1,Z1]=sphere(8);
[X2,Y2,Z2]=sphere(20);
subplot(1,3,1)
cylinder(2,8)
title('底面为正八边形的棱柱')
subplot(1,3,2)
surf(X1,Y1,Z1)
title('84个面组成的球面')
subplot(1,3,3)
surf(X2,Y2,Z2)
title('400个面组成的球面')
运行结果如图:

全部评论 (0)
还没有任何评论哟~
