已知A矩阵为:
4 20 12 8
3 15 7 40
8 22 12 36
11 30 18 46
求该矩阵的逆、行列式、秩、迹
a=[4,20,12,8;3,15,7,40;8,22,12,36;11,30,18,46]; b=inv(a); c=det(a); d=rank(a); f=trace(a); disp(num2str(b)); disp(num2str(c)); disp(num2str(d)); disp(num2str(f));
-0.13462 -0.23077 0.38462 -0.076923 0.10973 -0.013575 0.52262 -0.41629 -0.038462 0.076923 -0.96154 0.69231 -0.024321 0.033937 -0.056561 0.040724 -3536 4 77标签:disp,求该,12,矩阵,num2str,行列式 From: https://www.cnblogs.com/lachesism/p/16776870.html