How can I solve the nonlinear equations for X , Cs and Cc ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 24 Mär. 2019
xguess = [4. 5.];
sol = fsolve(@MNLEfun, xguess);
CC = sol(1)
Cs = sol(2)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Systems of Nonlinear Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!