abs
Absolute value
Syntax
- R = abs(M)
Input argument
- M - a variable
Output argument
- R - result of abs: absolute value.
Description
abs computes the absolute value.
If input argument is a complex number, abs computes the complex magnitude.
Example
x = [1+i,-i;i,2i];
r = abs(x)
See also
conj.
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET