I am trying to isolate m, s and h in the following system of equations. I am new to Matlab, so not sure if the code is wrong or if something with equations are off. Hope you can help!
syms l p a m o b s t w c h d g e
eqn1 = l==1/p*(a^{1/e}*m^{(e-1)/e}+b^{1/e}*s^{(e-1)/e}+c^{1/e}*h^{(e-1)/e}+d^{1/e}*g^{(e-1)/e})^{1/(e-1)}*a^{1/e}*m^{-1/e};
eqn2 = l==1/o*(a^{1/e}*m^{(e-1)/e}+b^{1/e}*s^{(e-1)/e}+c^{1/e}*h^{(e-1)/e}+d^{1/e}*g^{(e-1)/e})^{1/(e-1)}*b^{1/e}*s^{-1/e};
eqn3 = l==1/((1-t)*w)*(a^{1/e}*m^{(e-1)/e}+b^{1/e}*s^{(e-1)/e}+c^{1/e}*h^{(e-1)/e}+d^{1/e}*g^{(e-1)/e})^{1/(e-1)}*c^{1/e}*h^{-1/e};
sol = solve([eqn1, eqn2, eqn3], [m, s, h]);
mSol = sol.m
sSol = sol.s
hSol = sol.h
mSol
sSol
hSol
When I try to run the code I get the following error message, even though I'm pretty sure it's possible to solve:
Warning: Unable to find explicit solution. For options, see help.
> In solve (line 317)
In Losning_af_model (line 5)
Thank you!