physics/projectile motion problem
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!