MATLAB中生成一个元素在1到100之间的3行4列的随机整数矩阵的质量为( )
A: x=randi(1,100,3,4)
B: x=randi(100,3,4)
C: x=rand(100,3,4)
D: x=rand(3,4)
A: x=randi(1,100,3,4)
B: x=randi(100,3,4)
C: x=rand(100,3,4)
D: x=rand(3,4)
举一反三
- 线性方程组的系数矩阵为[1 3;2 4],右端常向量为2阶随机矩阵,则下列命令中可以求得线性方程组解的命令为________ A: A = [1 3;2 4]; b = rand(2,1); x = inv(A)*b; B: A = reshape(1:4,2,2); b = rand(2,1); x = inv(A)*b; C: A = [1 3;2 4]; b = rand(2,1); x = A?; D: A = [1 3;2 4]; b = rand(2,1); x = b/A;
- MATLAB中生成100个满足均匀分布的随机小数,要求数字在-1到2之间,则下面代码正确的是( ) A: x=-1+3rand(100) B: x=-1+3rand(100,1) C: x=3*rand(100,1) D: x=-1+3*rand(100,1)
- 设矩阵,已知A的特征值是λ1=2,λ2=λ3=1,则()。 A: x=-4,y=3 B: x=-4,y=-3 C: x=4,y=-3 D: x=4,y=3
- 求不定积分[img=115x46]17da65382f8e1b9.png[/img]; ( ) A: x - (5*log(x + 1))/4 - (3*log(x - 3)) B: (5*log(x + 1))/4 - (3*log(x - 3)) C: x - (5*log(x + 1))/4 - (3*log(x - 3))/4 D: (5*log(x + 1))/4 - (3*log(x - 3))/4
- 假设 int x=4,y=100,下列语句的循环体共执行()次。While(y/x>3){if(y%x>3){x=x+1;}else {y=y/x;}} A: 1 B: 2 C: 3 D: 4