필터 지우기
필터 지우기

How to solve multiple equations

조회 수: 2 (최근 30일)
HUH
HUH 2014년 11월 24일
댓글: HUH 2014년 11월 24일
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)))

답변 (1개)

Roger Stafford
Roger Stafford 2014년 11월 24일
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
HUH
HUH 2014년 11월 24일
Yeah, I just switched to Mathcad. Much easier for this type of homework

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by