• 2022-06-08
    线性方程组的系数矩阵为[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;