The best way to understand cubic splines (under whatever name or how specified) is to derive and code them yourself.
What you are looking for is a parametric equation with these properties:
$$
\begin{aligned}
f(0) &= y[n] = y_0\\
f(1) &= y[n+1] = y_1\\
f(2) &= y[n+2] = y_2\\
f(3) &= y[n+2] = y_3\\
\end{aligned}
$$
Your candidate function is a cubic polynomial, of course.
$$ f(t) = a t^3 + b t^2 + c t + d $$
Plug 'em in. You get four equations with four unknowns ($a,b,c,d$)
Once you have solved the equation, use it to interpolate between the middle two points.
Extra credit:
Do the vector equivalent in N-space with the conditions given as two points in space and the velocity vectors at each point with one unit of time to get there.
Then code your solutions. Print the results so you can see some precision. And compare your answer to Matlab's.
Then post your results here.
While cubic interpolation just means that you have fitted a cubic curve over some data points.
– Ben Jun 27 '20 at 19:47interp1has, like every matlab function, excellent documentation, and it tells you whatcubic(==pchip) andsplinedo. You'll notice that you can infer directly under which condition of your data these two methods are identical. However, you don't reference any research into what is done for interpolation here, so I'm not sure what the actual question is. – Marcus Müller Jun 27 '20 at 20:53