一、矩阵行列式的值:det(a)
>> a=pascal(5)
a =
1 1 1 1 1
1 2 3 4 5
1 3 6 10 15
1 4 10 20 35
1 5 15 35 70
>> r=det(a)
r =
1
二、矩阵的秩:rank()
>> a=pascal(5)
a =
1 1 1 1 1
1 2 3 4 5
1 3 6 10 15
1 4 10 20 35
1 5 15 35 70
>> rank(a)
ans =
5
三、矩阵的迹:trace()
>> a=pascal(5)
a =
1 1 1 1 1
1 2 3 4 5
1 3 6 10 15
1 4 10 20 35
1 5 15 35 70
>> trace(a)
ans =
99