MATLAB: Expression of the equations in the Symbolic Math Toolbox.

equationexpressionMATLABsymbolicSymbolic Math Toolbox

Hi
please how I can express cos(Q)?
Mine does not work as described.
eq1='y=x*cos(Q)'
eq2=solve(eq1,'cos(Q)')
cos(Q)=???
Thank you in advance for your advice.

Best Answer

eq2 = cos(solve(eq1, Q))