avgabs
Mean of absolute values.
Syntax
Section titled “Syntax”M = avgabs(A)M = avgabs(A, dim)Description
Section titled “Description”Returns mean(abs(A)) — the average of the absolute values. Useful for measuring signal amplitude when the signal can be negative.
MathJet-specific (not in MATLAB).
Example
Section titled “Example”avgabs([-1 2 -3 4]) % 2.5See also
Section titled “See also”Also categorized under: Range Functions / Math.