matlab phase of complex number code example
Example: phase of a complex number matlab
a = 1 + 2j
mag_a = abs(a) %% the magnitude of the complex variable
phase_a = angle(a) %% the phase of the complex variable
a = 1 + 2j
mag_a = abs(a) %% the magnitude of the complex variable
phase_a = angle(a) %% the phase of the complex variable