mA = 10;
muA = 0.3;
muB = 0.1;
g = 9.81;
theta = 30;
NA = mA*g*cosd(theta);
NB = mB*g*cosd(theta);
for mB = [1:1:20]
a = ((mA)*(g)*(sind(theta)) - (muA)*(NA) + (mB)*(g)*(sind(theta)) - (muB)*(NB)) / (mA + mB)
end
plot(mB,a)
The graph is not showing a curve and the x-axis values are incorrect. Quite new to matlab, but I have used a for loop in order to gain multiple values for 'a' when mB ranges from 1-20 in increments of 1. Could anyone help?
Thank you