physics/projectile motion problem

4 Ansichten (letzte 30 Tage)
Joseph
Joseph am 27 Feb. 2014
Create a Matlab program to track the time, x position, y position, x velocity and y velocity of a projectile that is launched off a cliff. assume no air drag and track the projectile from the launch point to the landing point which will be identified when the y position first becomes negative.
given:
Ti=0 sec, Xi= 0 m, Yi= 100 m, Vi= 50 m/s, Tf is when Y<=0
Required features:
: Asks program user to input launch angle and the time increment dt for tracking projectile
: uses a While Loop to compute t,x,y,Vx and Vy for each point in the flight as long as y>0
:outputs the initial and final flight parameter values to the command window.
:creates graphs of vertical postion vs horizontal position, horizontal position vs time, vertical position vs. time, horizontal velocity vs. time, and vertical velocity vs. time.
hint:
to compute time for each point use a formula such as t(n)=t(n-1) + dt...t(n-1) is the previous time and t(n) is the current time. n is the position in the vector which starts n=1

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by