%% Magnitude and Phase of Complex Number
% Create a complex number, and compute its magnitude and phase.

z = 2*exp(i*0.5)
r = abs(z)
theta = angle(z)

% Copyright 2018 The MathWorks, Inc.