MATLAB: I need to solve for the one variable (sw) and get a numerical answer for it. All other variables are known but I am trying to keep a generalized code. I think I might be using the wrong function. Please help!

equation solver

syms sw
tc=0.058;
ka=0.87;
M=.85;
CL=.75;
eqns=((ka/(cos(sw)))-(tc/(cos(sw).^2))-(CL/(10*cos(sw).^3)))==M;
solsw=solve(eqns,sw);

Best Answer

solsw = solve(eqns, sw, 'maxdegree', 3);
sort(double(solsw))
6 solutions, one of which is negative.