angle
Phase angle.
y=angle(x)
| Inputs |
x |
An array of real or complex numbers. |
y |
An array of same size as the input. Each element of the output is the phase angle of the corresponding element
of the input.
|
Example
>>a=complexRandn(3,2,4)*100
>>a
[:,1:2, 1]
-153.5781 + 74.2567i -9.8032 - 46.1737i
11.6710 - 49.2614i 62.7734 - 55.2829i
-30.3986 + 7.9590i -89.5626 - 6.8878i
[:,1:2, 2]
-11.9410 + 117.6002i -10.6191 - 7.0609i
-25.6112 - 14.6439i -0.3605 + 7.7125i
41.1278 - 165.9418i 125.4286 + 12.6190i
[:,1:2, 3]
54.4452 - 58.3974i 14.2361 - 17.5860i
24.4939 - 53.1171i 10.4010 - 22.2923i
-64.8225 + 14.1423i 13.4335 + 38.8276i
[:,1:2, 4]
-54.2844 + 3.1944i -3.1542 - 3.9591i
-15.9108 - 77.9545i 37.5123 + 150.4267i
-0.4199 + 0.0291i 154.4731 + 44.6309i
>>angle(a)
[:,1:2, 1]
2.6912 -1.7800
-1.3382 -0.7220
2.8855 -3.0648
[:,1:2, 2]
1.6720 -2.5548
-2.6222 1.6175
-1.3278 0.1003
[:,1:2, 3]
-0.8204 -0.8903
-1.1387 -1.1342
2.9268 1.2377
[:,1:2, 4]
3.0828 -2.2435
-1.7721 1.3264
3.0723 0.2813