FUNCTION REFERENCE

interp1q

Quick piecewise-linear interpolation of column data.

Quick piecewise-linear interpolation of column data.

Syntax

interp1q(X, Y, XI)

X must be a strictly increasing column with at least two points. Each column of Y has one sample per X. XI is a column of query points; queries outside the domain and NaN queries return NaN.

Example

interp1q([1;2;3], [10;20;30], [1.5;2.5])   % [15;25]

Differences from MATLAB: This implementation accepts real data only.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.