matlab实现矩阵数乘
>>
>> B1=[85,85,65,98;75,95,70,95;80,70,76,92]
B1 =
85 85 65 98
75 95 70 95
80 70 76 92
>>
>> B2=[90,70,80,92;80,90,82,92;85,75,90,90]
B2 =
90 70 80 92
80 90 82 92
85 75 90 90
>>
>>
>> C=0.9*B1+0.1*B2
C =
85.5000 83.5000 66.5000 97.4000
75.5000 94.5000 71.2000 94.7000
80.5000 70.5000 77.4000 91.8000
>>
>>