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:25:19 +0000 (UTC)
Organization: Xoran Technologies
Lines: 11
Message-ID: <hcpp1v$2cv$1@fred.mathworks.com>
References: <hcpmeu$h1o$1@fred.mathworks.com> <hcpn1m$on9$1@fred.mathworks.com> <hcpnsf$i4n$1@fred.mathworks.com> <hcpopv$gg2$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 1257269119 2463 172.30.248.37 (3 Nov 2009 17:25:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 3 Nov 2009 17:25:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:582102


"Matt " <xys@whatever.com> wrote in message <hcpopv$gg2$1@fred.mathworks.com>...

> 
> function X=phasor2cart(V)
> 
>   [r,c]=pol2cart(V(2),V(1));


should be

[r,c]=pol2cart(imag(V),real(V));