Azzera filtri
Azzera filtri

How to solve multiple equations

2 visualizzazioni (ultimi 30 giorni)
HUH
HUH il 24 Nov 2014
Commentato: HUH il 24 Nov 2014
This should be simple, but will someone show how to solve these two equations for A12 and A21. I can't understand the syms or solve commands
x1_a=.1
x2_a=1-x1_a
x1_b=.9
x2_b=1-x1_b
%gamma1_a=exp(x2_a^2*(A12+2*(A21-A12)*x1_a))
%gamma2_a=exp(x1_a^2*(A21+2*(A12-A21)*x2_a))
%gamma1_b=exp(x2_b^2*(A12+2*(A21-A12)*x1_b))
%gamma2_b=exp(x1_b^2*(A21+2*(A12-A21)*x2_b))
x1_a*(exp(x2_a^2*(A12+2*(A21-A12)*x1_a)))= x1_b*(exp(x2_b^2*(A12+2*(A21-A12)*x1_b)))
x2_a*(exp(x1_a^2*(A21+2*(A12-A21)*x2_a)))= x2_b*(exp(x1_b^2*(A21+2*(A12-A21)*x2_b)))

Risposte (1)

Roger Stafford
Roger Stafford il 24 Nov 2014
Consult these two sites carefully:
http://www.mathworks.com/help/symbolic/syms.html
http://www.mathworks.com/help/symbolic/solve.html
However, in your particular equations I would take the logarithm of both sides of each equation, which would produce linear equations in the two unknowns, and which Matlab can therefore easily solve.
  1 Commento
HUH
HUH il 24 Nov 2014
Yeah, I just switched to Mathcad. Much easier for this type of homework

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by