...
Using the system of kinematic equations above, I constructed two MATLAB functions: one to calculate mechanical advantage and another to calculate velocity. I ran these functions in my main code body, which sweeps the handle angle across its entire range of motion and plots the desired relationships.