下列绘制三维曲面图形的代码正确的是( )。
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)
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)
- 函数 [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);
- 在使用surf绘制空间曲面时,需要先生成网格点矩阵。若绘图区域为-2<x<2,-3<y<3,曲面方程为z=3*x*y^2,下列指令正确的是( ) A: x=-2:0.5:2; y=-3:0.5:3; z=3*x.*y.^2; surf(x,y,z) B: x=-2:0.5:2; y=-3:0.5:3; [x,y]=meshgrid(x,y); z=3*x.*y.^2; surf(x,y,z) C: x=-2:0.5:2; y=-3:0.5:3; z=3*x*y^2; surf(x,y,z) D: x=-2:0.5:2; y=-3:0.5:3; z=3*x.*y^2; surf(x,y,z)
- 4.已知二元函数$z(x,y)$满足方程$\frac{{{\partial }^{2}}z}{\partial x\partial y}=x+y$,并且$z(x,0)=x,z(0,y)={{y}^{2}}$,则$z(x,y)=$( ) A: $\frac{1}{2}({{x}^{2}}y-x{{y}^{2}})+{{y}^{2}}+x$ B: $\frac{1}{2}({{x}^{2}}{{y}^{2}}+xy)+{{y}^{2}}+x$ C: ${{x}^{2}}{{y}^{2}}+{{y}^{2}}+x$ D: $\frac{1}{2}({{x}^{2}}y+x{{y}^{2}})+{{y}^{2}}+x$
- 【单选题】设随机变量X和Y的分布律为P{X=0, Y=0}=0.1, P{X=0, Y=1}=0.2, P{X=1, Y=0}=0.3, P{X=1, Y=1}=0.1, P{X=2, Y=0}=0.2, P{X=2, Y=1}=0.1, 则Z=max{X,Y}的分布律中P{Z=1}=() A. 0.1 B. 0.3 C. 0.4 D. 0.6