MATLAB: Writing a script for the Equation Of Motion

accelerationdistanceMATLABmatlab functionmotion

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

Best Answer

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.