23.07.2012 Views

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

0interp1<br />

Purpose One-dimensional data interpolation (table lookup)<br />

<strong>C++</strong> Prototype mwArray interp1(const mwVarargin &in1,<br />

const mwArray &in2=mwArray::DIN,<br />

.<br />

.<br />

.<br />

const mwArray &in32=mwArray::DIN);<br />

<strong>C++</strong> Syntax #include "matlab.hpp"<br />

<strong>MATLAB</strong><br />

Syntax<br />

mwArray method; // String array(s)<br />

mwArray x, Y, xi; // Input argument(s)<br />

mwArray yi; // Return value<br />

yi = interp1(x,Y,xi);<br />

yi = interp1(x,Y,xi,method);<br />

yi = interp1(x,Y);<br />

yi = interp1(x,Y,xi)<br />

yi = interp1(x,Y,xi,method)<br />

See Also <strong>MATLAB</strong> interp1 Calling Conventions<br />

interp1<br />

207

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!