Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: syntax for polar complex numbers
Date: Tue, 3 Nov 2009 17:05:19 +0000 (UTC)
Organization: Federal Energy Regulatory Commission
Lines: 25
Message-ID: <hcpnsf$i4n$1@fred.mathworks.com>
References: <hcpmeu$h1o$1@fred.mathworks.com> <hcpn1m$on9$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257267919 18583 172.30.248.37 (3 Nov 2009 17:05:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 3 Nov 2009 17:05:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1782375
Xref: news.mathworks.com comp.soft-sys.matlab:582097


"Matt " <xys@whatever.com> wrote in message <hcpn1m$on9$1@fred.mathworks.com>...
> "Thomas " <loparna2000.removethis@yahoo.com> wrote in message <hcpmeu$h1o$1@fred.mathworks.com>...
> > Anyone know what the syntax is for a polar complex number?  I don't see anything about that in the help or in previous newsgroup postings.
> > 
> > Let's say I have a voltage with a magnitude of 1 p.u. and an angle of 0.0045 radians, and I want to input that as a complex phasor (a complex number with the same magnitude and phase angle) so that I can do some complex number computations.  How would I do that?
> > 
> > Obviously I can convert it to rectangular format in input it as X + Yi, but that is very inconvenient.  Is there a way to input it directly as a polar complex number?
> 
> 
> input it to what?

Let's say I want to computer the division of the following complex numbers:

V = (1.01<0.002radians) (where "<" is my makeshift angle symbol)
X = 1+3i

I acutally don't want to assign variables and such and such.  I know I could go through a long tortured procedure where I assign the magnitude and angle of V to different variables and use them to calculate the real and imaginary components of V.  That is way over the top for what I want to do.  What is the EASIEST way to accomplish this division?

I'm thinking about my HP 48g, where I would do the following:

(1.01,<0.002) enter
(1,3) enter
divide

Is there anything approaching that level of simplicity in Matlab?