<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Advanced MATLAB: Capture mouse movement</title>
	<atom:link href="http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<lastBuildDate>Fri, 10 Feb 2012 20:31:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: surbhi</title>
		<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2979</link>
		<dc:creator>surbhi</dc:creator>
		<pubDate>Fri, 27 Jan 2012 09:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2979</guid>
		<description>hi,
i got the new positions by setting:
y = get(h, &#039;Xdata&#039;)

in draggingFcn function

I want to store all these values in a matrix and not able to do that.</description>
		<content:encoded><![CDATA[<p>hi,<br />
i got the new positions by setting:<br />
y = get(h, &#8216;Xdata&#8217;)</p>
<p>in draggingFcn function</p>
<p>I want to store all these values in a matrix and not able to do that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2809</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Fri, 30 Sep 2011 14:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2809</guid>
		<description>@Aron,

You can set whatever callbacks you want on a line, even if there are different callbacks on different lines in the same axes.  They are independent.

You can use hold on, line (the primitive command), or plot(x,y,x2,y2).  These would all work.</description>
		<content:encoded><![CDATA[<p>@Aron,</p>
<p>You can set whatever callbacks you want on a line, even if there are different callbacks on different lines in the same axes.  They are independent.</p>
<p>You can use hold on, line (the primitive command), or plot(x,y,x2,y2).  These would all work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aron Horvath</title>
		<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2808</link>
		<dc:creator>Aron Horvath</dc:creator>
		<pubDate>Fri, 30 Sep 2011 12:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2808</guid>
		<description>Hi Doug

How can I create two independent lines. (with this properties)
I create a GUI, which has to know this option on a axes, where I have already plotted something else before.
How can I implement it to work well.
Thank you for your answers in advance.

Aron</description>
		<content:encoded><![CDATA[<p>Hi Doug</p>
<p>How can I create two independent lines. (with this properties)<br />
I create a GUI, which has to know this option on a axes, where I have already plotted something else before.<br />
How can I implement it to work well.<br />
Thank you for your answers in advance.</p>
<p>Aron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2775</link>
		<dc:creator>George</dc:creator>
		<pubDate>Mon, 05 Sep 2011 21:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2775</guid>
		<description>Don&#039;t worry Doug. I worked it out myself. Thanks for this excellent tutorial!</description>
		<content:encoded><![CDATA[<p>Don&#8217;t worry Doug. I worked it out myself. Thanks for this excellent tutorial!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2774</link>
		<dc:creator>George</dc:creator>
		<pubDate>Sun, 04 Sep 2011 21:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2774</guid>
		<description>How would I make each line use the same single callback?

George</description>
		<content:encoded><![CDATA[<p>How would I make each line use the same single callback?</p>
<p>George</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2773</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Fri, 02 Sep 2011 17:05:23 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2773</guid>
		<description>@George,

Each line can have its own callback function.  hObject is always the calling object, so things stay clear in the callbacks.

Doug</description>
		<content:encoded><![CDATA[<p>@George,</p>
<p>Each line can have its own callback function.  hObject is always the calling object, so things stay clear in the callbacks.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2771</link>
		<dc:creator>George</dc:creator>
		<pubDate>Fri, 02 Sep 2011 07:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2771</guid>
		<description>Hi Doug,

Thanks for sharing this with us. It is extremely helpful.

How would make this example work if you have a random amount of lines? i.e. you didnt know how many lines were going to be in the figure everytime you ran the script.

How would the dragginFcn know the handle of the particular line you were dragging?

It&#039;s probably easy to do but I thought I would ask you.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Doug,</p>
<p>Thanks for sharing this with us. It is extremely helpful.</p>
<p>How would make this example work if you have a random amount of lines? i.e. you didnt know how many lines were going to be in the figure everytime you ran the script.</p>
<p>How would the dragginFcn know the handle of the particular line you were dragging?</p>
<p>It&#8217;s probably easy to do but I thought I would ask you.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2491</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Fri, 17 Dec 2010 14:42:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2491</guid>
		<description>@Dwight,

A high level function like plot often changes a lot of values in the underlying axes when it is run.  Check the axes after plot to make sure all the callbacks, properties and such you are expecting are still there.

This is done because in the general case, it is what you usually want.  For higher level Handle Graphics manipulation like this, you need to watch these convenience functions carefully.

Doug</description>
		<content:encoded><![CDATA[<p>@Dwight,</p>
<p>A high level function like plot often changes a lot of values in the underlying axes when it is run.  Check the axes after plot to make sure all the callbacks, properties and such you are expecting are still there.</p>
<p>This is done because in the general case, it is what you usually want.  For higher level Handle Graphics manipulation like this, you need to watch these convenience functions carefully.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dwight Bartholomew</title>
		<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2490</link>
		<dc:creator>Dwight Bartholomew</dc:creator>
		<pubDate>Fri, 17 Dec 2010 04:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2490</guid>
		<description>My initial use of the information from this video was a simple &quot;click and display current position&quot; feature in my GUI.  Below is the code for clicking on the axes and displaying the location of that click in a text box.  
 
When I start up the GUI, it works great.  BUT after I&#039;ve drawn something on the axis (using a plot() function) nothing happens; it&#039;s almost like axes1_ButtonDownFcn is disabled.  What&#039;s going on?
 
&lt;pre&gt;
% --- Executes on mouse press over axes background.
function axes1_ButtonDownFcn(hObject, eventdata, handles)
% hObject    handle to axes1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
pt = get(hObject, &#039;currentPoint&#039;);
AStr = strcat(&#039;x = &#039;,num2str(pt(1,1)),&#039;  and  y = &#039;,num2str(pt(1,2)));
set(handles.text5,&#039;String&#039;,AStr);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>My initial use of the information from this video was a simple &#8220;click and display current position&#8221; feature in my GUI.  Below is the code for clicking on the axes and displaying the location of that click in a text box.  </p>
<p>When I start up the GUI, it works great.  BUT after I&#8217;ve drawn something on the axis (using a plot() function) nothing happens; it&#8217;s almost like axes1_ButtonDownFcn is disabled.  What&#8217;s going on?</p>
<pre>
% --- Executes on mouse press over axes background.
function axes1_ButtonDownFcn(hObject, eventdata, handles)
% hObject    handle to axes1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
pt = get(hObject, 'currentPoint');
AStr = strcat('x = ',num2str(pt(1,1)),'  and  y = ',num2str(pt(1,2)));
set(handles.text5,'String',AStr);
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Óscar Barquero</title>
		<link>http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2443</link>
		<dc:creator>Óscar Barquero</dc:creator>
		<pubDate>Fri, 12 Nov 2010 08:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/#comment-2443</guid>
		<description>Thanks, it works perfect. I&#039;m always wondering what for is this hObject, and finally I found the answer.

Óscar</description>
		<content:encoded><![CDATA[<p>Thanks, it works perfect. I&#8217;m always wondering what for is this hObject, and finally I found the answer.</p>
<p>Óscar</p>
]]></content:encoded>
	</item>
</channel>
</rss>

