. .
五、'双叶双曲面
ezsurf('8*tan(u)*cos(v)','8.*tan(u)*sin(v)','2.*sec(u)',[-pi./2,3*pi./2,0,2*pi]) axis equal grid on axis square
xlabel('x轴');ylabel('y轴');zlabel('z轴'); title('双叶双曲面')
. . .
. .
六、双曲柱面 load clown
ezsurf('2*sec(u)','2*tan(u)','v',[-pi/2,pi/2,-3*pi,3*pi]) hold on %在原来的图上继续作图 ezsurf('2*sec(u)','2*tan(u)','v',[pi/2,3*pi/2,-3*pi,3*pi]) colormap(map) shading interp view(-15,30) axis equal grid on axis equal
xlabel('x轴');ylabel('y轴');zlabel('z轴'); title('双曲柱面')
. . .
. .
七、双曲抛物面(马鞍面) [X,Y]=meshgrid(-7:0.1:7); Z=X.^2./8-Y.^2./6; meshc(X,Y,Z); view(85,20) axis('square')
xlabel('x轴');ylabel('y轴');zlabel('z轴'); title('双曲抛物面')
或直接用:ezsurfc('X.^2./8-Y.^2./6')
. . .
. .
八、抛物柱面
[X,Y]=meshgrid(-7:0.1:7); Z=Y.^2./8; h=mesh(Z);
rotate(h,[1 0 1],180) %旋转处理 %axis([-8,8,-8,8,-2,6]); axis('square')
xlabel('x轴');ylabel('y轴');zlabel('z轴'); title('抛物柱面')
或直接用:ezsurfc('Y.^2./8')
. . .
. .
九、环面
ezmesh('(5+2*cos(u))*cos(v)','(5+2*cos(u))*sin(v)','2*sin(u)',[0,2*pi,0,2*pi]) axis equal grid on
xlabel('x轴');ylabel('y轴');zlabel('z轴'); title('环面')
. . .