This MATLAB function returns a vector of interpolated values s corresponding to the query points in xq.
Use spline to interpolate a sine curve over unevenly-spaced sample points.
Use clamped or complete spline interpolation when endpoint slopes are known. To do this, you can specify the values vector y with two extra elements, one at the beginning and one at the end, to define the endpoint slopes.
Extrapolate a data set to predict population growth.
Generate the plot of a circle, with the five data points y(:,2),,y(:,6) marked with o's. The matrix y contains two more columns than does x. Therefore, spline uses y(:,1) and y(:,end) as the endslopes. The circle starts and ends at the point (1,0), so that point is plotted twice.
Use spline to sample a function over a finer mesh.
Compare the interpolation results produced by spline, pchip, and makima for two different data sets. These functions all perform different forms of piecewise cubic Hermite interpolation. Each function differs in how it computes the slopes of the interpolant, leading to different behaviors when the underlying data has flat areas or undulations.
Spline Interpolation - NI
interpolation - Remove base line drift with peicewise cubic spline algorithm using MATLAB - Stack Overflow
matlab - Cubic spline interpolation vs polynomial interpolation - Stack Overflow
Numerical Interpolation: Natural Cubic Spline, by Lois Leal
Solved In lectures you've learned about cubic splines
3.4) Cubic spline (natural): MatLab code + download link.
The Cubic Spline Interpolation in Layman's Terms… - Finance Tutoring
Solved MATLAB PROBLEM Use Lagrange interpolating polynomial
DIT - یونیورسٹی آف ہری پور - Course Hero
Cubic spline interpolation in SAS - The DO Loop