Page 1 of 1

USE MATLAB

Posted: Sun May 15, 2022 10:04 am
by answerhappygod
USE MATLAB
Use Matlab 1
Use Matlab 1 (28.72 KiB) Viewed 46 times
b. Show your electronic file to the instructor for testing c. Print your completed m-file. 4. Function: Height of a Projectile a. Write a function called height that gives the height of a ball at time t after it has been thrown straight upward with initial velocity v. (Vo>0) and with initial height ho = 0. The equation for the height h (m) of the ball att seconds is: h=vt -0.5812 where g = 9.81 m/s?, and vo is in m/s. The input arguments of the function should be vo and t. The first line of the m-file should be: function [h] = height(vo,t) To find the height of a ball with v. = 20 m/s, 3 seconds after it is released the user should type into the Command Window: >>height (20,3) Optional: write a function that includes g as a third input