I am trying to use the SOLVE function to get the symbolic solution of algebraic equations as shown in the code below.
syms MF = ((sqrt((gamma+1)/(gamma-1))*atan(sqrt(((gamma - 1)/(gamma + 1))*(M^2 - 1)))) - atan(sqrt(M^2 - 1))) - v_2;M_calc = (solve(F,M));M2 = double(M_calc(1));
Here, F is the symbolic equation and M is the symbolic object.
The above piece of code successfully creates a 1 by1 SYM object in all releases of Symbolic Math Toolbox from R14SP3 to R2006b.
However, when I execute the same code in Symbolic Math Toolbox R2007a through R2008a, I observe that M_calc, the created SYM object has a dimension of 0 by 0.
Best Answer