interp1
Core Math
1-D interpolation. Methods: 'linear' (default), 'nearest', 'cubic', 'spline'. Returns NaN for query points outside the data range.
Syntax
interp1(x, y, xq)
interp1(x, y, xq, 'linear')
interp1(x, y, xq, 'nearest')
interp1(x, y, xq, 'spline')
Examples
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab