https://ch.mathworks.com/help/robotics/ref/cubicpolytraj.html
cubicpolytraj - Generate third-order polynomial trajectories - MATLAB
This MATLAB function generates a third-order polynomial that achieves a given set of input waypoints with corresponding time points.
third ordergeneratepolynomialtrajectoriesmatlab