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

Z = [0.5i 1+3i -2.2];
X = real(Z)

%
% Copyright 2018 The MathWorks, Inc.