Fitting a smoothing spline method
1 view (last 30 days)
William Smith on 3 Apr 2018
spline takes data in the format ( known X's, known Y's, desired X's)
So, for example:
xfitted = spline(1:numel(x), x, desiredx);
That's just a simple cubic spline. See also 'pchip', which has the same API. Smoothing splines more formally have a 'pressure' to penalise excessive curvature. If you need them, they're in the Curve Fitting Toolbox.