Question: Matlab Program Homework code. This pics below are a litte out of order. The components for this project include: 1. Gather the following user inputs

Matlab Program Homework code. This pics below are a litte out of order. Matlab Program Homework code. This pics below are a litte out of

order. The components for this project include: 1. Gather the following userinputs from the MATLAB command window The bus speed in miles perhour The freeway angle of incline in degrees 2. Convert the busspeed from miles per hour (MPH) to meters per second (m/s). Recallthat 1 mph 0.44704 m/s. Print the bus speed conversion result in

The components for this project include: 1. Gather the following user inputs from the MATLAB command window The bus speed in miles per hour The freeway angle of incline in degrees 2. Convert the bus speed from miles per hour (MPH) to meters per second (m/s). Recall that 1 mph 0.44704 m/s. Print the bus speed conversion result in the command window with 2-digit after the decimal point precision 3. Based on the freeway incline angle input by the movie crew, compute the initial speed of the bus in the x and y directions The following equations may be useful x=xo + vot + ax t2 Vx2Vx02 2 ax (x - Xo) Vy2 = Vy02 + 2 ay (y-yo) Vy=Vyo + a, t For projectile motion, ax-0, a,--g, gravity g = 9.81 m/s' Compute the time it takes for the bus to reach the maximum height (Yo = 0) using Vy-Vyot ay t. This is the time duration for the bus to go up in the air. Print the time it takes for the bus to reach the maximum height in the command window 4. 5. The jump off point is elevated to 15 meters. Compute the maximum height of the bus using y-yo + Vy0t + ay t2 and print the maximum height of the bus in the command window 6. Compute the time it takes for the bus to free fall (Vyo 0) from its maximum height to the ground using y-yo + Vyot + ay t. This is the time duration for the bus to go down in the air. Print the time it takes for the bus to free fall from max height to the ground in the command window 7. Sum the time that the bus is going up and going down together to obtain the total time the bus will be in the air if it will not land on the freeway. Print the total time that the bus will be in the air in the command window. Format all time and height values to display 2 digits behind the decimal point Use the MATLAB linspace function to generate a large array of time that starts at 0 and ends at the total time with 100 equally spaced time points 8. The components for this project include: 1. Gather the following user inputs from the MATLAB command window The bus speed in miles per hour The freeway angle of incline in degrees 2. Convert the bus speed from miles per hour (MPH) to meters per second (m/s). Recall that 1 mph 0.44704 m/s. Print the bus speed conversion result in the command window with 2-digit after the decimal point precision 3. Based on the freeway incline angle input by the movie crew, compute the initial speed of the bus in the x and y directions The following equations may be useful x=xo + vot + ax t2 Vx2Vx02 2 ax (x - Xo) Vy2 = Vy02 + 2 ay (y-yo) Vy=Vyo + a, t For projectile motion, ax-0, a,--g, gravity g = 9.81 m/s' Compute the time it takes for the bus to reach the maximum height (Yo = 0) using Vy-Vyot ay t. This is the time duration for the bus to go up in the air. Print the time it takes for the bus to reach the maximum height in the command window 4. 5. The jump off point is elevated to 15 meters. Compute the maximum height of the bus using y-yo + Vy0t + ay t2 and print the maximum height of the bus in the command window 6. Compute the time it takes for the bus to free fall (Vyo 0) from its maximum height to the ground using y-yo + Vyot + ay t. This is the time duration for the bus to go down in the air. Print the time it takes for the bus to free fall from max height to the ground in the command window 7. Sum the time that the bus is going up and going down together to obtain the total time the bus will be in the air if it will not land on the freeway. Print the total time that the bus will be in the air in the command window. Format all time and height values to display 2 digits behind the decimal point Use the MATLAB linspace function to generate a large array of time that starts at 0 and ends at the total time with 100 equally spaced time points 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!