<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173057</link>
    <title>MATLAB Central Newsreader - 3-D polar plotting with discrete data points?</title>
    <description>Feed for thread: 3-D polar plotting with discrete data points?</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, 22 Jul 2008 19:57:39 -0400</pubDate>
      <title>3-D polar plotting with discrete data points?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173057#444722</link>
      <author>Ben</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I have data that has something like the following in each line, and&lt;br&gt;
there are about 1000 lines with different values of:&lt;br&gt;
&lt;br&gt;
BETA, THETA, PHI, VALUE1, VALUE2, VALUE3&lt;br&gt;
&lt;br&gt;
Where BETA, THETA, and PHI are angles.   A 3-D polar plot makes sense,&lt;br&gt;
but I'm not seeing that the utilities on matlab central file exchange&lt;br&gt;
are especially useful... BETA, THETA, and PHI are not necessarily&lt;br&gt;
smoothly varying.&lt;br&gt;
&lt;br&gt;
Just curious if anyone has a suggestion about which plotting routine&lt;br&gt;
to use to create a 3-D &quot;surface&quot; using such data (I can read it into&lt;br&gt;
an array).   The idea is to show how value1, value2, and value3 vary&lt;br&gt;
with changes in beta, theta, and phi.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
-Ben</description>
    </item>
    <item>
      <pubDate>Tue, 22 Jul 2008 21:12:58 -0400</pubDate>
      <title>Re: 3-D polar plotting with discrete data points?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173057#444739</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;2fd5edad-b4eb-462a-a3b8-db8536dd3a1c@k37g2000hsf.googlegroups.com&amp;gt;,&lt;br&gt;
Ben  &amp;lt;jbenjam@gmail.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;I have data that has something like the following in each line, and&lt;br&gt;
&amp;gt;there are about 1000 lines with different values of:&lt;br&gt;
&lt;br&gt;
&amp;gt;BETA, THETA, PHI, VALUE1, VALUE2, VALUE3&lt;br&gt;
&lt;br&gt;
&amp;gt;Where BETA, THETA, and PHI are angles.   A 3-D polar plot makes sense,&lt;br&gt;
&amp;gt;but I'm not seeing that the utilities on matlab central file exchange&lt;br&gt;
&amp;gt;are especially useful... BETA, THETA, and PHI are not necessarily&lt;br&gt;
&amp;gt;smoothly varying.&lt;br&gt;
&lt;br&gt;
&amp;gt;Just curious if anyone has a suggestion about which plotting routine&lt;br&gt;
&amp;gt;to use to create a 3-D &quot;surface&quot; using such data (I can read it into&lt;br&gt;
&amp;gt;an array).   The idea is to show how value1, value2, and value3 vary&lt;br&gt;
&amp;gt;with changes in beta, theta, and phi.&lt;br&gt;
&lt;br&gt;
You could convert to cartesian coordinates, then griddata()&lt;br&gt;
and then mesh() or surf() the result of that.&lt;br&gt;
&lt;br&gt;
I'm not sure how you are going to convert to cartesian coordinates,&lt;br&gt;
though, as a 3D cartesian coordinate would normally be two angles&lt;br&gt;
and a distance; having three angles sounds like a 4D surface.&lt;br&gt;
-- &lt;br&gt;
Current spam load: 750-800 messages per day (March 4, 2008)</description>
    </item>
    <item>
      <pubDate>Wed, 23 Jul 2008 02:18:12 -0400</pubDate>
      <title>Re: 3-D polar plotting with discrete data points?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173057#444776</link>
      <author>Ben</author>
      <description>On Jul 22, 5:12=A0pm, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson)&lt;br&gt;
wrote:&lt;br&gt;
&amp;lt;snip&amp;gt;&lt;br&gt;
&amp;gt; I'm not sure how you are going to convert to cartesian coordinates,&lt;br&gt;
&amp;gt; though, as a 3D cartesian coordinate would normally be two angles&lt;br&gt;
&amp;gt; and a distance; having three angles sounds like a 4D surface.&lt;br&gt;
&lt;br&gt;
Thanks!  You've triggered my memory:   This is a spherical coordinates&lt;br&gt;
to cartesian coordinates transformation, and meshgrid should&lt;br&gt;
regularize the data points appropriately.&lt;br&gt;
&lt;br&gt;
I'll follow the coordinate transformation rules outlined at:&lt;br&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Spherical_coordinate_system&quot;&gt;http://en.wikipedia.org/wiki/Spherical_coordinate_system&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
&lt;br&gt;
-Ben</description>
    </item>
    <item>
      <pubDate>Wed, 23 Jul 2008 02:24:08 -0400</pubDate>
      <title>Re: 3-D polar plotting with discrete data points?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173057#444777</link>
      <author>Ben</author>
      <description>&lt;br&gt;
I replied too quickly -- In this case, because there are 3 angles,&lt;br&gt;
each angle can be thought of as a respective rotation about the x, y,&lt;br&gt;
and z axis.   This means that the three angles can be transformed into&lt;br&gt;
two (somehow).  When combined with a length, as you said, two angles&lt;br&gt;
are sufficient to describe all positions in 3-D cartesian space.&lt;br&gt;
&lt;br&gt;
I just need to recall how to do that 3 angle to 2 angle&lt;br&gt;
transform.  :-)   I think you've put me on the right path, I'll mess&lt;br&gt;
around with it for awhile.&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
-Ben&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Jul 22, 10:18=A0pm, Ben &amp;lt;jben...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Jul 22, 5:12=A0pm, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson)&lt;br&gt;
&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;lt;snip&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I'm not sure how you are going to convert to cartesian coordinates,&lt;br&gt;
&amp;gt; &amp;gt; though, as a 3D cartesian coordinate would normally be two angles&lt;br&gt;
&amp;gt; &amp;gt; and a distance; having three angles sounds like a 4D surface.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks! =A0You've triggered my memory: =A0 This is a spherical coordinate=&lt;br&gt;
s&lt;br&gt;
&amp;gt; to cartesian coordinates transformation, and meshgrid should&lt;br&gt;
&amp;gt; regularize the data points appropriately.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I'll follow the coordinate transformation rules outlined at:&lt;a href=&quot;http://en.wik=&quot;&gt;http://en.wik=&lt;/a&gt;&lt;br&gt;
ipedia.org/wiki/Spherical_coordinate_system&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Cheers,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -Ben</description>
    </item>
  </channel>
</rss>

