Motorola DSP Developer's Kit | ![]() ![]() |
Output the absolute value of the input.
MATLAB Syntax
Description
The mot563_abs function computes the absolute value of the input. When X is complex, mot563_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=mot563_abs(X,'56301')
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
mot563_log mot563_log10 mot563_sqrt
![]() | Alphabetical List of Motorola 56300 DDK Functions | mot563_angle | ![]() |