Question: Assignment 1B Description Important: For the testing of this assignment, the automatic echoing of values in the Command Window must be suppressed. Please ensure you

 Assignment 1B Description Important: For the testing of this assignment, the

Assignment 1B Description Important: For the testing of this assignment, the automatic echoing of values in the Command Window must be suppressed. Please ensure you put a semicolon () at the end of each statement in order to suppress the echoing of values Position and Velocity of a Ball (adapted from Essentials of MATLAB Programming (2"d Ed), Stephen J. Chapman, 2.10) If a stationary ball is released at a height ho above the surface of the Earth with a vertical velocity vo, the position and velocity of the ball as a function of time wll be given by the equations where g is the acceleration due to gravity (-9.81 m/s2 assuming no air friction) h is the height above the surface of the Earth v is the vertical component of the velocity Note: h and v can be negative for simplicity Write a MATLAB program that prompts the user for the initial height of the ball in meters and velocity of the ball in meters per second. Then plot both the height and the velocity as a function of time. The program must calculate the velocity and the height for the first 10 seconds of flight, incremented every second. Be sure to include proper labels in your plots and a title. Be sure to have a legend and a visible grid. Please make the velocity vs time line is dotted and use circles for the point type Your results should look similar to the screenshots below (titles and wording should all match) Please note that the colours of the graphs should be green and blue

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!