Use a Matlab script that runs a Simulink to determine the distances y at any time with the following specifications:
Ask the user to input the values for p, Po, g, h, initial time ti, and final time tf.
Call a Simulink to calculate/simulate the needed results.
Plot y vs. t for [ti <= t <= tf].
Plot the velocity v vs. t for [ti <= t <= tf].
Show the value of the angular frequency.
Initial conditions are: t = 0, y = -5 m, and v = 0.
Simulink uses a scope to show y and v in the same figure.
Find and print the maximum distance reached in the y direction and the maximum velocity.