https://nl.mathworks.com/help/curvefit/spaps.html
spaps - Smoothing spline - MATLAB
This MATLAB function returns the B-form of the smoothest function f that lies within the given tolerance tol of the given data points (x(j), y(:,j)),...
smoothingsplinematlab