将矩阵中元素值带入线性方程求解的问题!
向各位大师请教:两个矩阵:
Mrem=[0.675 18 1.575;3.4 414.8 4.59;5.6 1.4 520.8]
Cout=[15 400 35;120 12500 180;220 45 9500]
想解线性方程:
(1)直接带入数据求:
[x,y]=solve('0.4*x+1.4=0.045*(x+y)','0.035*x+520.8=9.5*(x+y)')
得:
x =2.6684744334822985842816430494218
y =52.162409419693688831555184056550
(2)带入矩阵元素求:
[x,y]=solve('Cout(1,2)/1000*x+Mrem(3,2)=Cout(2,3)/1000*(x+y)','Cout(1,3)/1000*x+Mrem(3,3)=Cout(3,3)/1000*(x+y)')
得:
x =-1000*(Mrem(3,2)*Cout(3,3)-Cout(2,3)*Mrem(3,3))/(Cout(1,2)*Cout(3,3)-Cout(2,3)*Cout(1,3))
y =1000*(-Cout(1,3)*Mrem(3,2)+Mrem(3,3)*Cout(1,2)+Mrem(3,2)*Cout(3,3)-Cout(2,3)*Mrem(3,3))/(Cout(1,2)*Cout(3,3)-Cout(2,3)*Cout(1,3))
请问如何使(2)过程能得到如(1)中的数值结果?
拜托了!急用!谢谢!