USE MATLAB
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
USE MATLAB
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
USE MATLAB
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!