matlab成本核算问题学习
>>
>> M=[0.1,0.3,0.15;0.3,0.4,0.25;0.1,0.2,0.15]
M =
0.1000 0.3000 0.1500
0.3000 0.4000 0.2500
0.1000 0.2000 0.1500
>>
>>
>>
>>
>> P=[4000,4500,4500,4000;2000,2800,2400,2200;5800,6200,6000,6000]
P =
4000 4500 4500 4000
2000 2800 2400 2200
5800 6200 6000 6000
>>
>>
>> M*P
ans =
1870 2220 2070 1960
3450 4020 3810 3580
1670 1940 1830 1740
>>
>>
>>
>> Total1 = M*P
Total1 =
1870 2220 2070 1960
3450 4020 3810 3580
1670 1940 1830 1740
>>
>>
>>
>> Total2 = sum(Total1)
Total2 =
6990 8180 7710 7280
>>
>>
>> Total_final = sum(Total2)
Total_final =
30160
>>
>>
QQ 3087438119