Motorola DSP Developer's Kit | ![]() ![]() |
Output the absolute value of the input.
MATLAB Syntax
Description
The mot566_abs function computes the absolute value of the input. When X is complex, mot566_abs(X) is the complex modulus (magnitude) of the elements of X.
Characteristics
In the workspace, if the input is:
X=[0.9501+0.2311j 0.6068-0.4860j] Y=mot566_abs(X,'56601')
the answer returned by the function is:
Y=[0.9778 0.7774]
Arguments
X
Vector (or matrix) with elements normalized in the range [-1,1] (for complex elements, both real and imaginary parts should comply with this limit).
See Also
mot566_log mot566_log10 mot566_sqrt
![]() | Motorola 56600 Family ToolBox Function Reference | mot566_angle | ![]() |