在MATLAB的Editor中输入下列语句:x=[1
3;2 4];y=norm(x(:,2));z=det();u=diag();v=polyval(u,1);运行后,在Command
Window 中对应y,z,u,v的输出结果为(
)
A: 5 -2 [1;4] 5
B: 5 2 [1;2] 3
C: 4 2 [1;2] 3
D: 4 -2 [1;4] 5
3;2 4];y=norm(x(:,2));z=det();u=diag();v=polyval(u,1);运行后,在Command
Window 中对应y,z,u,v的输出结果为(
)
A: 5 -2 [1;4] 5
B: 5 2 [1;2] 3
C: 4 2 [1;2] 3
D: 4 -2 [1;4] 5
举一反三
- 在MATLAB的Editor中输入下列语句:x=[13;24];y=norm(x(:,2));z=det(x);u=diag(x);v=polyval(u,1);运行后,在CommandWindow中对应y,z,u,v的输出结果为() A: 4 2 [1;2] 3 B: 4 -2 [1;4] 5 C: 5 2 [1;2] 3 D: 5 -2 [1;4] 5
- int x=3,y,z;<br/>y=-x++;<br/>z=y+8/++x;<br/>Console.WriteLine{{0},{1},{2}",x,y,z);<br/>此程序的输出结果是____。 A: 5,-3,-2 B: 4,-3,-1 C: 4,-4,-2 D: 5,-4,-2
- 执行以下语句的结果:dict1={"x":1,"y":2,"z":3}dict2={"x":4,"a":5}dict1.update(dict2) A: {"x":1,"y":2,"z":3,"x":4,"a":5} B: {"x":4,"a":5,"x":1,"y":2,"z":3} C: 有重复项,结果有误! D: {"x":4,"y":2,"z":3,"a":5}
- 若x=[1 2 3 4 5];y=[2 -1 4 3 -2];则z=x.*y=()
- 下列哪条语句是正确的( ) A: A=[1 2;3 4];B=[3;7];A.*B; B: A=cell(2,3);A(1,2)=[4;5]; C: A=[2 3 5 7;9 4 6 1;7 3 2 5];B=[1 7;0 5];A(2:end,2:2:end) D: x=-5:5;y=-5:5;z=x.*x-y.*y;surf(x,y,z);