'Unable to find explicit solution' - solving simultaneous equations

I am trying to solve this set of three simultaneous equations and get a solution for Y in terms of the other parameters.
syms a b R T h p A B C Y
eqn1 = -(a+B*R+Y)*A * (1/T)*B + (1/h)*C == 0;
eqn2 = (a+p*B*R)*A - ((1/T)+Y)*B == 0;
eqn3 = (1-p)*B*R*A - ((1/h)+Y)*C == 0;
sol = solve([eqn1, eqn2, eqn3], [a, b, R, T, h, p, A, B, C, Y]);
YSol = sol.Y
However MATLAB brings me this message:
Warning: Unable to find explicit solution. For options, see help.
> In solve (line 317)
YSol =
Empty sym: 0-by-1
Does anyone know how I can resolve this? Thanks.

回答(2 个)

sol = solve([eqn1, eqn2, eqn3], [Y, A, B]);
Or any three variables involved in the equations. Note that b is not involved in the equation so you cannot solve for b
Resolve it? You cannot do so. You have posed 3 equations, yet you want to solve for 10 unknowns. There is no solution possible. This is not a question of MATLAB,or solve. It is a mathematical impossibility to do what you have asked.

类别

Community Treasure Hunt

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

Start Hunting!

Translated by