Question: Hello, I need Matlab code for this problem, please If a stationary ball is released at a height h0 above the surface of the Earth

Hello,

I need Matlab code for this problem, please

If a stationary ball is released at a height h0 above the surface of the Earth with a vertical velocity v0, the position and velocity of the ball as a function of time will be given by the equations () = 1 2 2 + 0 + 0 () = + 0

where g is the acceleration due to gravity (-9.81 m/s2 ), h is the height above the surface of the Earth, and v is the vertical component of velocity. Write a MATLAB program that prompts the user for the initial height in meters and velocity in meters per second and outputs a table of the height and velocity of the ball versus time, where time is between 0 and 10 seconds in steps of 0.5 seconds.

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!