Member of the basic class.
c = imag(a)
Returns the imaginary parts of the input elements.
| Name | Description |
| a | Specifies a scalar, vector, or matrix. |
| Name | Description |
| c | Returns the imaginary parts of the elements in a. c is a matrix of the same size as a. |
If a is real, imag(a) = zeros(size(a)).
A = [2.12+0.97i; 6.4-3.32i]
C = imag(A)