Chapter 2: Problem 10
Position and Velocity of a Ball. If a stationary ball is released at a height \(h_{o}\) above the surface of the Earth with a vertical velocity \(v_{o}\), the position and velocity of the ball as a function of time will be given by the equations $$ \begin{gathered} h(t)=\frac{1}{2} g t^{2}+v_{0} t+h_{0} \\ v(t)=g t+v_{0} \end{gathered} $$ where \(g\) is the acceleration due to gravity \(\left(-9.81 \mathrm{~m} / \mathrm{s}^{2}\right), h\) is the height above the surface of the Earth (assuming no air friction), and \(v\) is the vertical component of velocity. Write a MATLAB program that prompts a user for the initial height of the ball in meters and velocity of the ball in meters per second, and plots the height and velocity as a function of time. Be sure to include proper labels in your plots.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.