23.07.2012 Views

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Purpose Absolute value and complex magnitude<br />

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

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

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

Syntax<br />

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

mwArray Y; // Return value<br />

Y = abs(X);<br />

Y = abs(X)<br />

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

0abs<br />

abs<br />

24

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

Saved successfully!

Ooh no, something went wrong!