MATLAB: Is the functions not plotting a line

grapgMATLAB

My equations is working since i can manually change the variable to obtain different Vbar and Abar values, but it can't plot my graph. I have done this before so i dont know why its not working now. I attached the m' file and is also posting a screen shot.

Best Answer

Change the lines in your code like this
Wcd=(s.*Wab.*(s+sin(theta)))./(1+s.^2+2.*s.*sin(theta));
%^ put a dot here

Acd=(Wab.^2.*s.*cos(theta).*(1-s.^2))./((1+s.^2+2.*s.*sin(theta)).^2);
%^ put a dot here