Solving multiple symbolic equations to get (X/Z)
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello everyone, My system is described by the following equations: X = a Y + b Z; Y = c X + d Z;
I want to use Matlab to get (X/Z) as a function of a, b, c, d ??
0 Commenti
Risposta accettata
Stephan
il 30 Lug 2018
Hi,
i guess you want this:
syms X Y Z a b c d
eqn(1) = X == a * Y + b * Z;
eqn(2) = Y == c * X + d * Z;
sol = solve(eqn,[X Z]);
x = sol.X
z = sol.Z
which is:
x =
(Y*b + Y*a*d)/(d + b*c)
z =
(Y - Y*a*c)/(d + b*c)
Best regards
Stephan
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!