# angle

Phase angle

### angle(A)

• It returns the phase angle of each element of the array A.
• The phase anges are in radians, with values between -pi and pi.
• If A is empty, it returns an empty matrix.

Example 1: Plotting phase angles for various complex numbers.

x=-100:100;
[X,Y]=meshgrid(x);
Z=angle(complex(X,Y));
surf(X,Y,Z)
xlabel('x');
ylabel('y');
zlabel('angle(complex(x,y))')

Surface plot is generated.