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:
dVdt~~V(t)-V(t-dt)dt
to calculate the solution of the following equations for the speed and height of a ball:
mdVdt=-mg-SCDV32|V|,dhdt=V
|V| indicates the magnitude of V. The abs() function in MATLAB can be used to calculate this
value. The parameters in the equation are m=0.16kg,g=9.81ms-2,=1.225kgm-3,
CD=1 and S=0.0177m2. The initial speed, speed at time =0 seconds, is 10ms and the initial
height of the ball is 1 m . Calculate the solution until the ball returns to earth, when the height
will be less than or equal to 0 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.
Write a MATLAB script that uses a first order

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 Finance Questions!