I need someone to convert this python script to Matlab script

Job ID: 33747428

Budget: $10 – $30 AUD

The python script is about Newton's cradle using ODE's. Relatively small script 80 lines, mostly parameters.

This is the python script:
https://replit.com/@LeMouse/4-ball-Newtons-cradle-simulation?v=1
Related categories: Python Matlab and Mathematica Mathematics