函数 [img=197x96]1803dbfc46ca27a.png[/img]表示的曲面称为椭圆锥面,绘制这个曲面的程序是:
A: s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2+y.^2);mesh(x,y,z)
B: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2/a/a+y.^2/b/b);mesh(x, y, z)
C: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2/a*a+y.^2/b*b);mesh(x, y, z)
D: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x^2/a/a+y^2/b/b);mesh(x, y, z);
A: s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2+y.^2);mesh(x,y,z)
B: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2/a/a+y.^2/b/b);mesh(x, y, z)
C: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2/a*a+y.^2/b*b);mesh(x, y, z)
D: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x^2/a/a+y^2/b/b);mesh(x, y, z);
举一反三
- 下列绘制三维曲面图形的代码正确的是( )。 A: x=0:0.1:10;y=0:0.1:10;z=x.^2+y.^2;surf(x,y,z) B: x=0:0.1:10;y=0:0.1:10;z=x^2+y^2;mesh(x,y,z) C: x=0:0.1:10;[x,y]=meshgrid(x);z=x.^2+y.^2;mesh(x,y,z) D: x=0:0.1:10;[x,y]=meshgrid(x);z=x^2+y^2;surf(x,y,z)
- 绘制函数 z=(x+y)^2 的曲面图 A: x=-3:0.1:3; y=-3:0.1:3; z=(x+y)^2; surf(x,y,z) B: x=-3:0.1:3; y=-3:0.1:3; z=(x+y).^2; surf(x,y,z) C: x=-3:0.1:3; y=-3:0.1:3; z=(x+y).^2; meshgrid(x,y,z); surf(x,y,z) D: x=-3:0.1:3; y=-3:0.1:3; [X,Y]=meshgrid(x,y); Z=(X+Y).^2; surf(X,Y,Z)
- 一空间曲线由参数方程x=t y=sin(2t) , -3<t<3z=cos(3t*t)表示,绘制这段曲线可以由下列哪组语句完成。 A: t=-3:0.1:3;x=t;y=sin(2*t);z=cos(3*t.*t);plot3(x, y, z, t) B: t=-3:0.1:3;x=t;y=sin(2*t);z=cos(3*t*t);plot3(x, y, z) C: t=-3:0.1:3;y=sin(2*t);z=cos(3*t.*t);plot3(x, y, z) D: t=-3:0.1:3;x=t;y=sin(2*t);z=cos(3*t.*t);plot3(x, y, z) E: x=-3:0.1:3;y=sin(2*x);z=cos(3*x.*x);plot3(x, y, z)
- 下列程序段的执行结果是( )。 x = 5: y = 7: z = 8 If x < y Then t = x: x = y: y = t End If If y < z Then t = y: y = z: z = t If x < y Then t = x: x = y: y = t End If End If Print x, y, z A: 8 5 7 B: 8 7 5 C: 5 7 8 D: 7 5 8
- 绘制空间曲面之旋转抛物面[img=110x32]17da6538d6dd653.png[/img]的程序如下:x = -5: 0.5 : 5;y = x;z = x.^2 + y.^2;mesh(x, y, z)该程序是否正确。( )