MATLAB: Is interp1(x, v, x(k), mtd) == v(k) always true

interpolationMATLAB

is
interp1(x, v, x(k), mtd) == v(k)
always true or does it depend on method and/or type of x and v? Followup: is the answer documented?

Best Answer

Yes, guaranteed. interp1 calls griddedInterpolant to do the work and that routine says,
"This surface always passes through the sample values at the point locations."
Related Question