<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852</link>
    <title>MATLAB Central Newsreader - syntax for polar complex numbers</title>
    <description>Feed for thread: syntax for polar complex numbers</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 03 Nov 2009 16:41:03 -0500</pubDate>
      <title>syntax for polar complex numbers</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852#691760</link>
      <author>Thomas </author>
      <description>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.&lt;br&gt;
&lt;br&gt;
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?&lt;br&gt;
&lt;br&gt;
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?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Tom</description>
    </item>
    <item>
      <pubDate>Tue, 03 Nov 2009 16:51:02 -0500</pubDate>
      <title>Re: syntax for polar complex numbers</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852#691763</link>
      <author>Matt </author>
      <description>&quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpmeu$h1o$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
input it to what?</description>
    </item>
    <item>
      <pubDate>Tue, 03 Nov 2009 17:05:19 -0500</pubDate>
      <title>Re: syntax for polar complex numbers</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852#691768</link>
      <author>Thomas </author>
      <description>&quot;Matt &quot; &amp;lt;xys@whatever.com&amp;gt; wrote in message &amp;lt;hcpn1m$on9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpmeu$h1o$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; input it to what?&lt;br&gt;
&lt;br&gt;
Let's say I want to computer the division of the following complex numbers:&lt;br&gt;
&lt;br&gt;
V = (1.01&amp;lt;0.002radians) (where &quot;&amp;lt;&quot; is my makeshift angle symbol)&lt;br&gt;
X = 1+3i&lt;br&gt;
&lt;br&gt;
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?&lt;br&gt;
&lt;br&gt;
I'm thinking about my HP 48g, where I would do the following:&lt;br&gt;
&lt;br&gt;
(1.01,&amp;lt;0.002) enter&lt;br&gt;
(1,3) enter&lt;br&gt;
divide&lt;br&gt;
&lt;br&gt;
Is there anything approaching that level of simplicity in Matlab?</description>
    </item>
    <item>
      <pubDate>Tue, 03 Nov 2009 17:21:03 -0500</pubDate>
      <title>Re: syntax for polar complex numbers</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852#691772</link>
      <author>Matt </author>
      <description>&quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpnsf$i4n$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Matt &quot; &amp;lt;xys@whatever.com&amp;gt; wrote in message &amp;lt;hcpn1m$on9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpmeu$h1o$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; input it to what?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Let's say I want to computer the division of the following complex numbers:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; V = (1.01&amp;lt;0.002radians) (where &quot;&amp;lt;&quot; is my makeshift angle symbol)&lt;br&gt;
&amp;gt; X = 1+3i&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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.  &lt;br&gt;
-------&lt;br&gt;
&lt;br&gt;
I don't know why you consider this a long tortured procedure. MATLAB has functions pol2cart() and cart2pol() that essentially perform these transformations for you. If you want to carry V from your example around as a single variable, you could do so as&lt;br&gt;
&lt;br&gt;
V=1.01+i*0.002&lt;br&gt;
&lt;br&gt;
but remember to convert it using the following 2-line function whenever you want to do arithmetic&lt;br&gt;
&lt;br&gt;
function X=phasor2cart(V)&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;[r,c]=pol2cart(V(2),V(1));&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;X=r+c*i;</description>
    </item>
    <item>
      <pubDate>Tue, 03 Nov 2009 17:25:19 -0500</pubDate>
      <title>Re: syntax for polar complex numbers</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852#691773</link>
      <author>Matt </author>
      <description>&quot;Matt &quot; &amp;lt;xys@whatever.com&amp;gt; wrote in message &amp;lt;hcpopv$gg2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; function X=phasor2cart(V)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;   [r,c]=pol2cart(V(2),V(1));&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
should be&lt;br&gt;
&lt;br&gt;
[r,c]=pol2cart(imag(V),real(V));</description>
    </item>
    <item>
      <pubDate>Tue, 03 Nov 2009 17:44:02 -0500</pubDate>
      <title>Re: syntax for polar complex numbers</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852#691779</link>
      <author>Thomas </author>
      <description>&quot;Matt &quot; &amp;lt;xys@whatever.com&amp;gt; wrote in message &amp;lt;hcpopv$gg2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpnsf$i4n$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Matt &quot; &amp;lt;xys@whatever.com&amp;gt; wrote in message &amp;lt;hcpn1m$on9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpmeu$h1o$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; input it to what?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Let's say I want to computer the division of the following complex numbers:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; V = (1.01&amp;lt;0.002radians) (where &quot;&amp;lt;&quot; is my makeshift angle symbol)&lt;br&gt;
&amp;gt; &amp;gt; X = 1+3i&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; 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.  &lt;br&gt;
&amp;gt; -------&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I don't know why you consider this a long tortured procedure. MATLAB has functions pol2cart() and cart2pol() that essentially perform these transformations for you. If you want to carry V from your example around as a single variable, you could do so as&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; V=1.01+i*0.002&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; but remember to convert it using the following 2-line function whenever you want to do arithmetic&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; function X=phasor2cart(V)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;   [r,c]=pol2cart(V(2),V(1));&lt;br&gt;
&amp;gt;    X=r+c*i;&lt;br&gt;
&lt;br&gt;
I guess it's a matter of opinion.  I have a lot of these to do.  Would like to know simplest way.  Using cart2pol, easiest way would be the following:&lt;br&gt;
&lt;br&gt;
[vre,vim] = cart2pol(0.465,1.01);&lt;br&gt;
(vre+i*vim)/(1+3i)&lt;br&gt;
&lt;br&gt;
You cannot, as you suggest, simply enter V=1.01+i*0.002.  (Actually, that happens to work in this special case, since the phase angle is so small that abs(V) = Re(V) and angle(V) = Im(V), but it wouldn't work in general.)&lt;br&gt;
&lt;br&gt;
I just thought that, given Matlab's power to do complex computations, they might have some more convenient way for specifying polar complex numbers in computations, or assigning polar complex numbers to variables.</description>
    </item>
    <item>
      <pubDate>Tue, 03 Nov 2009 17:52:02 -0500</pubDate>
      <title>Re: syntax for polar complex numbers</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852#691781</link>
      <author>Thomas </author>
      <description>&quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpq52$b9b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Matt &quot; &amp;lt;xys@whatever.com&amp;gt; wrote in message &amp;lt;hcpopv$gg2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpnsf$i4n$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;Matt &quot; &amp;lt;xys@whatever.com&amp;gt; wrote in message &amp;lt;hcpn1m$on9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpmeu$h1o$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; input it to what?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Let's say I want to computer the division of the following complex numbers:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; V = (1.01&amp;lt;0.002radians) (where &quot;&amp;lt;&quot; is my makeshift angle symbol)&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; X = 1+3i&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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.  &lt;br&gt;
&amp;gt; &amp;gt; -------&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I don't know why you consider this a long tortured procedure. MATLAB has functions pol2cart() and cart2pol() that essentially perform these transformations for you. If you want to carry V from your example around as a single variable, you could do so as&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; V=1.01+i*0.002&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; but remember to convert it using the following 2-line function whenever you want to do arithmetic&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; function X=phasor2cart(V)&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;   [r,c]=pol2cart(V(2),V(1));&lt;br&gt;
&amp;gt; &amp;gt;    X=r+c*i;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I guess it's a matter of opinion.  I have a lot of these to do.  Would like to know simplest way.  Using cart2pol, easiest way would be the following:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [vre,vim] = cart2pol(0.465,1.01);&lt;br&gt;
&amp;gt; (vre+i*vim)/(1+3i)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You cannot, as you suggest, simply enter V=1.01+i*0.002.  (Actually, that happens to work in this special case, since the phase angle is so small that abs(V) = Re(V) and angle(V) = Im(V), but it wouldn't work in general.)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I just thought that, given Matlab's power to do complex computations, they might have some more convenient way for specifying polar complex numbers in computations, or assigning polar complex numbers to variables.&lt;br&gt;
&lt;br&gt;
Sorry, I meant to use pol2cart in my example, not cart2pol.  It would be:&lt;br&gt;
&lt;br&gt;
[vre,vim] = pol2cart0.465,1.01);&lt;br&gt;
(vre+i*vim)/(1+3i)</description>
    </item>
    <item>
      <pubDate>Tue, 03 Nov 2009 18:10:03 -0500</pubDate>
      <title>Re: syntax for polar complex numbers</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852#691786</link>
      <author>John D'Errico</author>
      <description>&quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpnsf$i4n$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Matt &quot; &amp;lt;xys@whatever.com&amp;gt; wrote in message &amp;lt;hcpn1m$on9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpmeu$h1o$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; input it to what?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Let's say I want to computer the division of the following complex numbers:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; V = (1.01&amp;lt;0.002radians) (where &quot;&amp;lt;&quot; is my makeshift angle symbol)&lt;br&gt;
&amp;gt; X = 1+3i&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm thinking about my HP 48g, where I would do the following:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; (1.01,&amp;lt;0.002) enter&lt;br&gt;
&amp;gt; (1,3) enter&lt;br&gt;
&amp;gt; divide&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is there anything approaching that level of simplicity in Matlab?&lt;br&gt;
&lt;br&gt;
Nothing stops you from writing it. But, no. There is&lt;br&gt;
no such tool.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Tue, 03 Nov 2009 18:24:02 -0500</pubDate>
      <title>Re: syntax for polar complex numbers</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852#691790</link>
      <author>Matt </author>
      <description>&quot;Thomas &quot; &amp;lt;loparna2000.removethis@yahoo.com&amp;gt; wrote in message &amp;lt;hcpq52$b9b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt; I guess it's a matter of opinion.  I have a lot of these to do.  Would like to know simplest way.  Using cart2pol, easiest way would be the following:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [vre,vim] = cart2pol(0.465,1.01);&lt;br&gt;
&amp;gt; (vre+i*vim)/(1+3i)&lt;br&gt;
======================&lt;br&gt;
&lt;br&gt;
Not if you write a function, as I suggested, that gives you X=(vre+i*vim) as its output.  If you did, this would reduce to one line,&lt;br&gt;
&lt;br&gt;
result = myfunction(0.465,1.01) / (1+3i);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; You cannot, as you suggest, simply enter V=1.01+i*0.002. &lt;br&gt;
=====&lt;br&gt;
&lt;br&gt;
Yes you can, but as I was careful to point out, you cannot do any computations with it: it is merely a way of carrying around the phasor data as a single object. To do computations, you would have to invoke a conversion function phasor2cart()  first, but note that if you do, the above syntax would simplify still further to&lt;br&gt;
&lt;br&gt;
result = phasor2cart(V) / (1+3i);</description>
    </item>
    <item>
      <pubDate>Tue, 03 Nov 2009 18:47:02 -0500</pubDate>
      <title>Re: syntax for polar complex numbers</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264852#691799</link>
      <author>Matt </author>
      <description>Another solution would be to use classdef to write your own Phasor data type.&lt;br&gt;
I've created a prototype for you at the bottom of this post, which should be put in a file called Phasor.m &lt;br&gt;
&lt;br&gt;
Using the function Phasor() you can create a data type which is in all ways like MATLAB's usual complex variables, but which displays its contents in phasor form, e.g.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; V=Phasor(1.01,.002)  %From your earlier example&lt;br&gt;
&amp;nbsp;&lt;br&gt;
[Mag Angle]:&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1.0100    0.0020&lt;br&gt;
&lt;br&gt;
But the important thing is that you can also do arithmetic on it with complex numbers in whatever form you want, as in the following examples:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; V/1+3i  %phasor/cartesian&lt;br&gt;
&lt;br&gt;
ans =&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;1.0100 + 3.0020i&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; V/V %phasor/phasor&lt;br&gt;
&lt;br&gt;
ans =&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;br&gt;
&lt;br&gt;
If you want the results displayed or saved in phasor form, you can use the Phasor() function once again:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; result=Phasor(V/1+3i),&lt;br&gt;
&amp;nbsp;&lt;br&gt;
[Mag Angle]:&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3.1674    1.2463&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
%%%%The code below must go in a file Phasor.m&lt;br&gt;
&lt;br&gt;
classdef Phasor &amp;lt; double&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;methods&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function obj=Phasor(varargin)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;switch nargin&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 2&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Mag,Angle]=deal(varargin{:});&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[r,c]=pol2cart(Mag,Angle);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data=r+c*i;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case 1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data=varargin{1};&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end            &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;obj=obj@double(data);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function display(obj)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Angle,Mag]=cart2pol(real(obj), imag(obj));&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;disp ' '&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;disp('[Mag Angle]:')&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;disp ' '&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;disp([Mag(:),Angle(:)]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
end</description>
    </item>
  </channel>
</rss>

