%% Imaginary Part of Vector of Complex Values
% Find the imaginary part of each element in vector Z. The imag function acts on Z element-wise.

Z = [0.5i 1+3i -2.2];
Y = imag(Z)

%
% Copyright 2018 The MathWorks, Inc.