I'm having trouble with the code in trying to find the angle phi. The calculation for AD uses Theta as I intended, but when calculating Phi, I only get one answer instead of multiple. This makes the rest of my code incorrect. Any suggestions?
% GivensAB = 150;BD = 200;Theta = 20:120;Mb = 2.5;%SolutionsAD = sqrt(BD^2 + AB^2-2*BD*AB*cosd(Theta));%Finding angle Phi of force PPhi = asind(AB*sind(Theta)/AD);%Finding force PP = Mb/(BD*sind(90 - Phi));%Finding MaMa = P * AD;