Question: Write a MATLAB script that uses a first order explicit discretisation scheme: d V d t ~~ V ( t ) - V ( t
Write a MATLAB script that uses a first order explicit discretisation scheme:
~~
to calculate the solution of the following equations for the speed and height of a ball:
indicates the magnitude of The abs function in MATLAB can be used to calculate this
value. The parameters in the equation are
and The initial speed, speed at time seconds, is and the initial
height of the ball is m Calculate the solution until the ball returns to earth, when the height
will be less than or equal to m
Note that for this problem it is likely your solution will involve growing arrays. For this question
there will be no penalty for this.
a The script should create plots of your results as a function of time. You do not have to
submit this plot.
b Explain, using comments within the script, what is a suitable choice for the time step
size and why.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
