Answered step by step
Verified Expert Solution
Link Copied!

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 h(t) of a ball thrown upwards with initial velocity
v0 from an initial height h0 is:
h(t)= h0+ v0t (gt2)/2
where g is the gravitational acceleration. Use g =9.81 m/sec2 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 >0 when the ball will hit
the ground (which occurs when h =0).
In the Matlab command window (not in the script file itself) assign the numerical values
h0=50; v0=20;. Your script should express its calculations in terms of these variables, h0
and v0, 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions