matlab如何解方程组syms A B P[A,B,P]=solve(12.56*(A-311)=-20.9*(B-311),B/311=P^0.71,933*P=A*20+B)结果是错[A,B,P]=solve(12.56*(A-311)=-20.9*(B-311),B/311=P^0.71,933*P=A*20+B)Error:The expression to the left of the equals sign is not a valid target for an assignment.
问题描述:
matlab如何解方程组
syms A B P
[A,B,P]=
solve(12.56*(A-311)=-20.9*(B-311),B/311=P^0.71,933*P=A*20+B)
结果是错
[A,B,P]=solve(12.56*(A-311)=-20.9*(B-311),B/311=P^0.71,933*P=A*20+B)
Error:The expression to the left of the equals sign is not a valid target for an assignment.
答
加单引号
>> [A,B,P]= solve('12.56*(A-311)=-20.9*(B-311)','B/311=P^0.71','933*P=A*20+B')
A =
58.505380691632510208368024800025
B =
462.73839323029165893698074681874
P =
1.7501029014608165735309123717248