physics/projectile motion problem

조회 수: 4 (최근 30일)
Joseph
Joseph 2014년 2월 27일
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

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by