det 计算数组行列式
>> A=[1 2 3;4 5 9;8 7 6]
A =
1 2 3
4 5 9
8 7 6
>> det(A)
ans =
27
inv 计算矩阵的逆
A =
1 2 3
4 5 9
8 7 6
>> inv(A)
ans =
-1.2222 0.3333 0.1111
1.7778 -0.6667 0.1111
-0.4444 0.3333 -0.1111
pinv 计算矩阵的伪逆
>> A=[75,43,32;2,6,3;83,23,54]
A =
75 43 32
2 6 3
83 23 54
>> pinv(A)
ans =
0.0238 -0.1479 -0.0059
0.0131 0.1300 -0.0150
-0.0421 0.1720 0.0339
rank 计算矩阵的秩
>> A=[1,2,3;4,5,6]
A =
1 2 3
4 5 6
>> rank(A)
ans =
2