C Math Library Reference | ![]() ![]() |
One-dimensional data interpolation (table lookup)
C Prototype
mxArray *mlfInterp1(mxArray *x, ...);
C Syntax
#include "matlab.h"
mxArray *x, *Y, *xi; /* Required input argument(s) */
mxArray *method; /* String array(s) */
mxArray *yi = NULL; /* Return value */
mlfAssign(&yi, mlfInterp1(x,Y,xi,NULL));
mlfAssign(&yi, mlfInterp1(x,Y,xi,method,NULL
));
MATLAB Syntax
yi = interp1(x,Y,xi)
yi = interp1(x,Y,xi,method
)
See Also
interp1
Calling Conventions![]() | mlfInt2str | mlfInterp1q | ![]() |