https://it.mathworks.com/help/driving/ref/smoothpathspline.html
smoothPathSpline - Smooth vehicle path using cubic spline interpolation - MATLAB
This MATLAB function generates a smooth vehicle path, consisting of numSmoothPoses discretized poses, by fitting the input reference path poses to a cubic...
smoothvehiclepathusingcubic