How can I solve the nonlinear equations for X , Cs and Cc ?

1 Ansicht (letzte 30 Tage)
Ali zain
Ali zain am 24 Mär. 2019
Beantwortet: Walter Roberson am 24 Mär. 2019
xguess = [4. 5.]; % initial guess vector
function fx = MNLEfun(x)
Cc = x(1);
Cs = x(2);
umax = 0.8;
Km = 4;
Csoo = 10;
Cso = 10;
Ysc = 2;
rg = umax * Cs * Cc / (Km + Cs);
rs = 0 - (Ysc * rg);
V = 5000;
vo = 1000;
D = vo / V;
Cco = 4.33;
X = 1 - (Cs / Csoo);
fx(1,1) = (D * Cs - rg );
fx(2,1) = (D * (Cso - Cs) + rs);
end
How can I solve the nonlinear equations for X , Cs and Cc ?
Thanks for the help

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 24 Mär. 2019
xguess = [4. 5.];
sol = fsolve(@MNLEfun, xguess);
CC = sol(1)
Cs = sol(2)

Weitere Antworten (0)

Kategorien

Mehr zu Systems of Nonlinear Equations finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by