<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'matlab complex function plot' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'matlab complex function plot' posted on the 'Matlab' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 15:10:34 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 15:10:34 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>matlab complex function plot</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/429632/429632/matlab-complex-function-plot/</link>
      <description>1. Plot the amplitude of the complex function G(x,w)=xexp(-lR)/R^2, l=iw/c, R=sqrt(x^2+y^2+z^2), for -100&amp;lt;x&amp;lt;100 with 200 points, for -90&amp;lt;y&amp;lt;90 with 180 points, for z=100, w=1000, c=1500. Use the meshgrid option to be able to compute G and plot the result using ' imagesc'. annotate the axes&lt;br /&gt;
&lt;br /&gt;
2. Plot the phase of G(x,w)  as a function of x and y. Use ‘lookfor phase angle’ to find out how to compute the phase of complex numbers.&lt;br /&gt;
&lt;br /&gt;
here is my approach to question 1 &lt;br /&gt;
&lt;br /&gt;
x=linspace(-100,100,200);  &lt;br /&gt;
y=linspace(-90,90,180);    &lt;br /&gt;
z=100;&lt;br /&gt;
w=1000; &lt;br /&gt;
c=1500;&lt;br /&gt;
[X,Y,Z]=meshgrid(x,y,z);  &lt;br /&gt;
R=sqrt(X.^2+Y.^2+Z.^2);&lt;br /&gt;
G=X.*exp(-1i*w/c*R)./R.^2&lt;br /&gt;
figure, imagesc(x,y,real(G))&lt;br /&gt;
xlabel('X-axis'), ylabel('Y-axis')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
could you advise me please &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/429632/429632/matlab-complex-function-plot/</guid>
      <pubDate>Tue, 25 Sep 2012 11:19:30 -0700</pubDate>
      <category>Matlab</category>
    </item>
  </channel>
</rss>