<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237538</link>
    <title>MATLAB Central Newsreader - urgent: selecting 3D points on figure</title>
    <description>Feed for thread: urgent: selecting 3D points on figure</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, 14 Oct 2008 22:03:02 -0400</pubDate>
      <title>urgent: selecting 3D points on figure</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237538#605265</link>
      <author>Mahdieh </author>
      <description>Hi everybody,&lt;br&gt;
&lt;br&gt;
This problem has wasted my time for sometime now...&lt;br&gt;
Any help would be appreciated ...&lt;br&gt;
I plot a 3D dataset using plot3, and I want to be able to click on 7 different points on the figure...and access the xyz coordinates of those points in my workspace ...&lt;br&gt;
I have tried, getpts, ginput, and played a bit with datacursor ...&lt;br&gt;
The first two are for xy data and I can not get the z coordinate, and with the latter, I can not select several points ...&lt;br&gt;
&lt;br&gt;
Any help would be appreciated ...&lt;br&gt;
-Mahdieh </description>
    </item>
    <item>
      <pubDate>Wed, 15 Oct 2008 16:17:01 -0400</pubDate>
      <title>Re: urgent: selecting 3D points on figure</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237538#605469</link>
      <author>Mahdieh </author>
      <description>Hey, &lt;br&gt;
I found it myself...&lt;br&gt;
for selecting multiple cursor on my data, I keep down Alt ...&lt;br&gt;
&amp;nbsp;and to access their coordinates I wrote the following:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt;dcm_obj = datacursormode(fig);&lt;br&gt;
&amp;gt;&amp;gt;f = getCursorInfo(dcm_obj)&lt;br&gt;
f =&lt;br&gt;
1x3 struct array with fields:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Target&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Position&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DataIndex&lt;br&gt;
&amp;gt;&amp;gt; a = struct2cell(f);&lt;br&gt;
&lt;br&gt;
Now the points are simply in a{2},a{5},a{8} ...&lt;br&gt;
if three points are selected ...&lt;br&gt;
&lt;br&gt;
-Mahdieh &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Mahdieh &quot; &amp;lt;mahdieh.emrani@capitalhealth.ca&amp;gt; wrote in message &amp;lt;gd34um$e9s$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi everybody,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; This problem has wasted my time for sometime now...&lt;br&gt;
&amp;gt; Any help would be appreciated ...&lt;br&gt;
&amp;gt; I plot a 3D dataset using plot3, and I want to be able to click on 7 different points on the figure...and access the xyz coordinates of those points in my workspace ...&lt;br&gt;
&amp;gt; I have tried, getpts, ginput, and played a bit with datacursor ...&lt;br&gt;
&amp;gt; The first two are for xy data and I can not get the z coordinate, and with the latter, I can not select several points ...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Any help would be appreciated ...&lt;br&gt;
&amp;gt; -Mahdieh </description>
    </item>
  </channel>
</rss>

