Question: 2. Throwing a ball Below are all the steps you need to follow, but you should also add your own meaningful comments to the code



2. Throwing a ball Below are all the steps you need to follow, but you should also add your own meaningful comments to the code as you write it. 1) 2) Start a new file in the MATLAB Editor and save it as CTasklp2.m At the top of the file, define some constants (you can pick your own variablenames) i. nitial height of ball at release 1.5 m ii. Gravitational acceleration 9.8 m/s2 ii. Velocity of ball at release 4 m/s iv. Angle of the velocity vector at time of release 45 degrees Next, make a time vector that has 1000 linearly spaced values between 0 and 1, inclusive. If x is distance and y is height, the equations below describe their dependence on time and all the other parameters (initial height h, gravitational acceleration g, initial ball velocity v, angle of velocity vector in degrees 0). See the following illustration: 3) 4) Solve for x and y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
