%球面
subplot(2,2,1);
[x,y,z]=sphere(30);
surf(x,y,z);
title('sphere球体');
%柱面
subplot(2,2,2);
[x1,y1,z1]=cylinder(3);%参数决定球面光滑程度,球体半径为1
surf(x1,y1,z1);
title('cylinder柱面');
subplot(2,2,3);
[x1,y1,z1]=cylinder(2+sin(0:pi/10:2*pi),30);%参数决定球面光滑程度,球体半径为1
surf(x1,y1,z1);
title('cylinder柱面2');
%多峰面
subplot(2,2,4);
[x2,y2,z2]=peaks(30);
surf(x2,y2,z2);
title('peaks多峰面');