a = 1 + 2j mag_a = abs(a) %% the magnitude of the complex variable phase_a = angle(a) %% the phase of the complex variable