| C++ Math Library Reference | ![]() |
Purpose
Absolute value and complex magnitude
C++ Prototype
mwArray abs(const mwArray &X);
C++ Syntax
#include "matlab.hpp" mwArray X; // Input argument(s) mwArray Y; // Return value Y = abs(X);
MATLAB Syntax
Y = abs(X)
See Also
abs Calling Conventions | Logical Operators | acos, acosh | ![]() |