Mass_A = 10; % mass in kg
Us = 0.15;Mass_B = 0;% The range of values of Mass_B with 5kg increment
g = 9.81;while (Mass_B <= 50) Angle = atan((4.5+0.15*Mass_B)/(-10+Mass_B)); Mass_B = Mass_B + 5;endplot(Mass_B,Angle,'r')xlabel('Mass_B (kg)');ylabel('The angle in rad');title('The angle in rad Vs Mass_B (kg)');
MATLAB: Can anyone please explain this? I tried to implement this code on Matlab, but the graph is blank. I do not know what I did wrong.
plotting
Best Answer