Writing a script for the Equation Of Motion
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
I want to write a MATLAB script for the second equation of motion s=vo+1/2at^2. How would I approach this? Any help would be appreciated.
I am trying to simulate the trajectory of a bullet and I am finding it quite difficult as no values are assigned for conditions and therefore struggling as to where begin. Thank you
댓글 수: 0
채택된 답변
Walter Roberson
2019년 9월 5일
If you neglect friction from the air, then acceleration is g, 9.81 m/s, directed downwards.
V0 is the muzzle velocity; there is a whole Wikipedia article about muzzle velocities of various kinds of bullets. Pick one.
t is simulated time.
댓글 수: 5
Walter Roberson
2019년 9월 5일
inputdlg() or just pass them as parameters to your function.
I suspect that you would be fine picking one particular common muzzle velocity such as for a 22 or a 303
추가 답변 (1개)
darova
2019년 9월 5일
Some examples of throwing. MAybe you can find them usefull for your bullet simulation
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!