For this question, we will refer to your Lab 2 handout. Go over the projectile m
ID: 3555081 • Letter: F
Question
For this question, we will refer to your Lab 2 handout. Go over the projectile motion equations we provided you and write a MATLAB function called "problem2", which accepts 2 inputs (in order): initial velocity and firing angle. Make your function return one single output, where the output will be the total velocity of the object after 10 seconds. Note that total velocity is calculated based on x and y components of the velocity. For the purposes of this question, we do not care if the object went below ground level. Assume there is nothing to stop this object and report the total velocity after 10 seconds. Use g = 9.8 m/s^2. All angles are given in degrees. Do not print anything.
Explanation / Answer
function vf = problem2(v,a) vx=v*cosd(a); vy=v*sind(a)-9.8*10; vf=sqrt(vx^2+vy^2) end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.