Hi, I'm very new to MATLAB and I am having some trouble. Lots of people have had the same problem but nobody seems to be able to explain or solve it in plain English. Could somebody please explain what this error is and how to fix it?
I have a simple function:
function [r]=Mec134function(w,theta_deg) t2=10000; theta_rad=(theta_deg./180).*pi; t1=55090./(10*sin(theta_rad)); rx=(t1.*cos(theta_rad))-t2; ry=w-(t1.*sin(theta_rad)); r=((rx).^2+(ry).^2).^0.5;end
It seems to give this error for line 3 but I'm not sure why.
Thanks.
Best Answer