Imag
Imaginary part of complex number
Syntax
Imag(x) |
x is scalar |
Return a scalar which is the imaginary part of x |
x is matrix |
Return a matrix in which the element is the imaginary part of the element in x |
Example
Input |
Output |
imag(1 + 2i) |
|
imag([1+i, 0, 1-i]) |
|
imag([i, 1-3i; -2i, 5]) |
See Also
Created with the Personal Edition of HelpNDoc: Free EBook and documentation generator