matlab矩阵运算——乘法、除法学习
矩阵乘法、除法
>> A1=[1,3,1;2,0,4;2,1,2]
A1 =
1 3 1
2 0 4
2 1 2
>>
>>
>>
>> A2=[3,0,3;2,1,2;4,2,0]
A2 =
3 0 3
2 1 2
4 2 0
>>
>> A3=A1*A2
A3 =
13 5 9
22 8 6
16 5 8
>>
>>
>>
>> A3/A2
ans =
1 3 1
2 0 4
2 1 2
>>
>>
>> A3/A1
ans =
-1.4000 -2.0000 9.2000
-4.4000 -8.0000 21.2000
-2.8000 -4.0000 13.4000
>>
>>
QQ 3087438119