Abs
Absolute value and complex magnitude
Syntax
Abs(x) |
x is scalar |
Return a scalar which is the magnitude of x |
x is matrix |
Return a matrix in which the element is the magnitude of the element in x |
Example
Input |
Output |
abs(1 + 2i) |
|
abs([1+i, 0, 1-i]) |
|
abs([i, 1-3i; -2i, 5]) |
See Also
Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation