<< abs Elementary functions base2dec >>

angle


Phase angle


Syntax


R = angle(Z)

Input argument


Z

a variable (double, single, complex)

Output argument


R

result of angle function.

Description


angle computes the phase angle, equivalent to atan2(imag(Z), real(Z)).

Example


x = [1+i,-i;i,2i];
r = angle(x)

See also


atan2.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< abs Elementary functions base2dec >>