g=9.81r=0.6theta= (0:0.6:pi)'speed=sqrt(g/r)xlabel("Angular position")ylabel(" Coefficient of static friction")speeds= [5 6 7 8 9];for i=speeds(1,:) mu_s=g*sin(theta)./(r.*i.^2+g*cos(theta)) plot(theta*180/pi,mu_s,"lineWidth",1,"Marker","*") xlabel("Angular position(degrees)") ylabel("Coefficient of static friction") hold onendhold offlegend("5m/s","6m/s","7m/s","8m/s","9m/s")%[max,index]=max(mu_s)
save PLOTS% speed 5 is the green and speed 9 is the blue. makesense.
% second question, the min mu_s that will keep the
%block on contact is equal to the max value on the
%plot of theata versus mu_s.
i have to plot the max point of each plot in another graph that containes the max points only. how can i do that please?
Thank you in advance
Best Answer