フィルターのクリア

how to get the graph for trajectory of a ball thrown at an angle?

5 ビュー (過去 30 日間)
Mansi Gupta
Mansi Gupta 2017 年 9 月 18 日
編集済み: Image Analyst 2017 年 9 月 19 日
we know that a ball thrown at angle has a parabolic path so what are the requirements to get a 3-d or 2-d graph for it's trajectory.. tell by any method either by simulink or matlab
  1 件のコメント
the cyclist
the cyclist 2017 年 9 月 18 日
Please read this tutorial and then try asking your question again.

サインインしてコメントする。

回答 (2 件)

Tim Berk
Tim Berk 2017 年 9 月 19 日
編集済み: Tim Berk 2017 年 9 月 19 日
  • Option 1: Look up the equations that describe the trajectory, program them in matlab and plot.
  • Option 2: Work out the equations yourself, program them in matlab and plot.
  • Option 3 (this is the most fun option): Simulate the trajectory in matlab.
Edited-out the entire solution to your homework problem.
You can simulate this by starting with initial conditions given by the angle and velocity magnitude. These should give you the (constant) horizontal velocity and (initial) vertical velocity. You should be able to work out the change in vertical velocity as function of time (gravity).
Now you can loop through time, changing the vertical velocity at each time step and recalculating the new horizontal and vertical positions.
  4 件のコメント
Jan
Jan 2017 年 9 月 19 日
Thanks, Tim. This is useful for the forum and the asking students also in a long term of view. +1
James Tursa
James Tursa 2017 年 9 月 19 日
+1 for editing the answer.

サインインしてコメントする。


Image Analyst
Image Analyst 2017 年 9 月 19 日
編集済み: Image Analyst 2017 年 9 月 19 日
Try my attached projectile demo. It computes and plots just about everything you could possibly want. Adapt as needed.
By the way, the answer to your direct (and only) question "what are the requirements to get a 3-d or 2-d graph?" is to use MATLAB and call plot() or plot3(). You have not asked anything else.

カテゴリ

Help Center および File Exchange2-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