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.

0diff<br />

Purpose Differences and approximate derivatives<br />

<strong>C++</strong> Prototype mwArray diff(const mwArray &X);<br />

mwArray diff(const mwArray &X, const mwArray &n);<br />

mwArray diff(const mwArray &X, const mwArray &n,<br />

const mwArray &dim);<br />

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

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

Syntax<br />

mwArray X, n, dim; // Input argument(s)<br />

mwArray Y; // Return value<br />

Y = diff(X);<br />

Y = diff(X,n);<br />

Y = diff(X,n,dim);<br />

Y = diff(X)<br />

Y = diff(X,n)<br />

Y = diff(X,n,dim)<br />

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

diff<br />

108

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

Saved successfully!

Ooh no, something went wrong!