Which expression returns the imaginary part of complex number z
Answers
Answered by
0
Answer:
imag(z) returns the imaginary part of z. If z is a matrix, imag acts elementwise on z.
Examples
Compute Imaginary Part of Numeric Inputs
Find the imaginary parts of these numbers. Because these numbers are not symbolic objects, you get floating-point results.
[imag(2 + 3/2*i), imag(sin(5*i)), imag(2*exp(1 + i))]
ans =
1.5000 74.2032 4.5747
Similar questions