MATLAB: MatlabFunction with syms do not evaluate eqv

syms powers matlabfunction

Good day,
Som insight way there is no evaluation for current symbolic function?
When entering…
syms p1 p2 v1 v2 gma
eqv = p1*v1^gma==p2*v2^gma;
p2 = matlabFunction(eqv,p2)
The output is the same function, without evaluation for the requested variable. While it should be p2=p1*(v1/v2)^gma or p2=p1*v1^gma/v2^gma… Is there some error in understanding of the use of current functions?

Best Answer

For what you're describing, matlabFunction is not the right tool. solve is the right tool.