MATLAB Function Reference | Search  Help Desk |
abs | Examples See Also |
Absolute value and complex magnitude
Y = abs(X)
abs(X)
returns the absolute value, , for each element of X
.
If X
is complex, abs(X)
returns the complex modulus (magnitude):
abs(X) = sqrt(real(X).^2 + imag(X).^2)
abs(-5) = 5 abs(3+4i) = 5
angle
Phase angle
sign
Signum function
unwrap
Correct phase angles