Use ode45 in MATLAB: call syntax, first-order and second-order examples, default tolerances, ode15s for stiff problems, and the SciPy solve_ivp equivalent. The following steps use the first-order ...
To simulate projectile motion in MATLAB, write the motion as a first-order system with the state vector y = [x; y; vx; vy], pass it to ode45 as an anonymous function, and use an event function to stop ...