1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>ANGLE Phase Angle Function
</TITLE>
</HEAD>
<BODY>
<H2>ANGLE Phase Angle Function
</H2>
<P>
Section: <A HREF=sec_mathfunctions.html> Mathematical Functions </A>
<H3>Usage</H3>
Compute the phase angle in radians of a complex matrix. The general
syntax for its use is
<PRE>
p = angle(c)
</PRE>
<P>
where <code>c</code> is an <code>n</code>-dimensional array of numerical type.
<H3>Function Internals</H3>
For a complex number <code>x</code>, its polar representation is
given by
<P>
<DIV ALIGN="CENTER">
<IMG SRC="angle_eqn1.png">
</DIV>
<P>
and we can compute
<P>
<DIV ALIGN="CENTER">
<IMG SRC="angle_eqn2.png">
</DIV>
<P>
<H3>Example</H3>
Here are some examples of the use of <code>angle</code> in the polar decomposition
of a complex number.
<PRE>
--> x = 3+4*i
x =
3.0000 + 4.0000i
--> a = abs(x)
a =
5
--> t = angle(x)
t =
0.9273
--> a*exp(i*t)
ans =
3.0000 + 4.0000i
</PRE>
<P>
M version contributor: M.W. Vogel 01-30-06
</BODY>
</HTML>
|