本帖最后由 ranzuo 于 2019-3-14 14:15 编辑
我想用matlab的solve函数解一个五元二次方程,代码如下:
syms x y z h d
[x,y,z,d,h]=solve('x/1.61272+y/1.62536+z/1.61272=0','123.454321*x/58.63+h^2*y/35.56+d^2*z/58.63=0','11.111*x/58.63-d*z/58.63=0','11.111*x+h*y+d*z=0.11111','(11.111-h)/(11.111*x)=(h-d)/(11.111*x+h*y)')
但是我运行得到的完整结果是:
警告: Support of strings that are not valid variable names or define a number will be removed in a future release. To create symbolic expressions, first
create symbolic variables and then use operations on them.
> In sym>convertExpression (line 1536)
In sym>convertChar (line 1441)
In sym>tomupad (line 1198)
In sym (line 177)
In solve>getEqns (line 405)
In solve (line 225)
In wuyuan3cifangcheng (line 2)
x =</