solve a system of equations symbolically with R2018a

14 visualizzazioni (ultimi 30 giorni)
>> eqn1='(Fa0*x1)/0.1*(9.05*(1-x1))*(27.8-9.05*x1))==3785'
eqn1 =
'(Fa0*x1)/0.1*(9.05*(1-x1))*(27.8-9.05*x1))==3785'
>> eqn2='(Fa0*(x2-x1))/0.1*(9.05*(1-x2))*(27.8-9.05*x2))==3785'
eqn2 =
'(Fa0*(x2-x1))/0.1*(9.05*(1-x2))*(27.8-9.05*x2))==3785'
>> eqn3='(Fa0*(0.95-x2))/0.1*(9.05*(1-0.95))*(27.8-9.05*0.95))==3785'
eqn3 =
'(Fa0*(0.95-x2))/0.1*(9.05*(1-0.95))*(27.8-9.05*0.95))==3785'
>> solT=solve(eqn1,eqn2,eqn3,x1,x2,Fa0)
Error using solve>getEqns (line 418)
List of equations must not be empty.
Error in solve (line 226)
[eqns,vars,options] = getEqns(varargin{:});

Risposte (1)

Walter Roberson
Walter Roberson il 16 Lug 2019
You are using R2018b or later. solve() no longer accepts character vectors for equations.
Furthermore, each of your equations has an extra ) before the ==
  5 Commenti
Katy Skillings
Katy Skillings il 17 Lug 2019
Thank you. I attempted solving another way and got this answer as well but was intimidated by the lengthy answer. What is vpa?

Accedi per commentare.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by