Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The equation of motion for the height h ( t ) of a ball thrown upwards with initial velocity v 0 from an initial height
The equation of motion for the height ht of a ball thrown upwards with initial velocity
v from an initial height h is:
ht h vt gt
where g is the gravitational acceleration. Use g msec in your calculations.
Write a Matlab script called myball.m which will calculate the following two quantities:
the maximum height hmax achieved by the ball, and the time thit when the ball will hit
the ground which occurs when h
In the Matlab command window not in the script file itself assign the numerical values
h; v; Your script should express its calculations in terms of these variables, h
and v not these specific numbers this lets us reuse the script to explore many different
possibilities for initial height and velocities Run your script by typing its name myball
into the command window. The output that appears should look like
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started