@sym
: imag (z) ¶Imaginary part of a symbolic expression.
Examples:
syms z imag(z) ⇒ ans = (sym) im(z)
syms x real imag(x) ⇒ ans = (sym) 0 imag(1i*x) ⇒ ans = (sym) x
imag([x sym(pi) + 6i 7 3i]) ⇒ ans = (sym) [0 6 0 3] (1×4 matrix)
See also: @sym/real, @sym/conj, @sym/ctranspose.
Package: symbolic