Question: Question: write a MATLAB code that solves example 13.1 page 122 (modified). When the program runs it must guess the value of the towing force


Question: write a MATLAB code that solves example 13.1 page 122 (modified). When the program runs it must guess the value of the towing force P required for the crate to reach a velocity of 100 m/s in 3 s. In my example, I assumed that the force P was unknown and I found P for the crate to reach a velocity of 15.6 m/s in 3 s. When the program runs, it must display the value of the towing force P Helper: Example 13.1 page 122 (modified) clear all clc Data m-50; g-9.81 muK=0.3; theta=30; t=3; v0=0; % guess P for i=1 : 1 : 500 P-ii % calculate velocity Nc=m*g-P* sind (theta) ; a (P*cosd (theta) -muK*Nc) /m; v v0+a * t ; % Check answer and stop when answer is correct if v>-15.6 break; end end % display last v
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
