Creating Trajectories with Splines

Source: www.mathworks.com