<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771</link>
    <title>MATLAB Central Newsreader - ginput problem</title>
    <description>Feed for thread: ginput problem</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>Wed, 10 Dec 2008 11:09:02 -0500</pubDate>
      <title>ginput problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771#616133</link>
      <author>Michael Spurr</author>
      <description>I'm having trouble with the ginput command. I use it in a program to extract data points from a graph displayed on screen by clicking the mouse on the axes and plot. Previously, this program and ginput worked without any problem. However, just today I tried to use the program again and nothing happened after the first use of ginput. I selected the points on the plot and pressed return, after which Matlab displayed the 'busy' status indicator but did not move on to the next part of the program. When forcing the program to stop through control-c, I got the following message:&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; ginput at 99&lt;br&gt;
	keydown = wfbp;&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; plot_sample at 17&lt;br&gt;
[X,Y] = ginput;&lt;br&gt;
&lt;br&gt;
Has anyone come across this problem? Any idea why ginput has suddenly stopped working for me?&lt;br&gt;
&lt;br&gt;
Many thanks,&lt;br&gt;
&lt;br&gt;
Michael</description>
    </item>
    <item>
      <pubDate>Sun, 14 Dec 2008 21:08:02 -0500</pubDate>
      <title>Re: ginput problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771#617009</link>
      <author>Dave Brackett</author>
      <description>&quot;Michael Spurr&quot; &amp;lt;michael.spurr@nospam.selexgalileo.com&amp;gt; wrote in message &amp;lt;gho80e$bv2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I'm having trouble with the ginput command. I use it in a program to extract data points from a graph displayed on screen by clicking the mouse on the axes and plot. Previously, this program and ginput worked without any problem. However, just today I tried to use the program again and nothing happened after the first use of ginput. I selected the points on the plot and pressed return, after which Matlab displayed the 'busy' status indicator but did not move on to the next part of the program. When forcing the program to stop through control-c, I got the following message:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; ginput at 99&lt;br&gt;
&amp;gt; 	keydown = wfbp;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; plot_sample at 17&lt;br&gt;
&amp;gt; [X,Y] = ginput;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Has anyone come across this problem? Any idea why ginput has suddenly stopped working for me?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Many thanks,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Michael&lt;br&gt;
&lt;br&gt;
can you post your code? the error message doesn't say much and has probably only been displayed because of the forced exiting of the function using ctrl+c.&lt;br&gt;
&lt;br&gt;
have you tried using ginput with a set number of points as a test? e.g. [x,y]=ginput(2)</description>
    </item>
    <item>
      <pubDate>Mon, 15 Dec 2008 08:34:02 -0500</pubDate>
      <title>Re: ginput problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771#617073</link>
      <author>Michael Spurr</author>
      <description>This is highly embarassing, but it turns out I was pressing 'return' on the wrong window! I was doing it on the Matlab window rather than the image window. It appears that my brain is already shutting down for the Christmas period!&lt;br&gt;
&lt;br&gt;
Thanks for the advice and sorry about the waste of time.&lt;br&gt;
&lt;br&gt;
Michael</description>
    </item>
    <item>
      <pubDate>Sat, 12 Nov 2011 03:30:14 -0500</pubDate>
      <title>Re: ginput problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771#858279</link>
      <author>Yagnaseni Roy</author>
      <description>&quot;Michael Spurr&quot; &amp;lt;michael.spurr@nospam.selexgalileo.com&amp;gt; wrote in message &amp;lt;gi54pq$gin$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; This is highly embarassing, but it turns out I was pressing 'return' on the wrong window! I was doing it on the Matlab window rather than the image window. It appears that my brain is already shutting down for the Christmas period!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for the advice and sorry about the waste of time.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Michael&lt;br&gt;
&lt;br&gt;
glad to know your problem got sorted...&lt;br&gt;
&lt;br&gt;
On the other hand, I'm trying to plot all the data points that I selected using ginput at once on a single plot....&lt;br&gt;
&lt;br&gt;
I tried:&lt;br&gt;
&lt;br&gt;
M = mmreader('fractogene.avi');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;N = M.NumberOfFrames;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for ii = 1:N&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;image(M.read(ii));&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;[X,Y]=ginput(1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;pause(0.1)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&lt;br&gt;
THEN TO GET THE PLOT, I TRIED:&lt;br&gt;
&lt;br&gt;
for ii=1:N&lt;br&gt;
plot(X,Y)&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
BUT IT JUST GIVE ONE SINGLE POINT AS THE OUTPUT...I dont get the N data points that I'm supposed to...&lt;br&gt;
Please tell me what's wrong! </description>
    </item>
    <item>
      <pubDate>Sat, 12 Nov 2011 09:08:33 -0500</pubDate>
      <title>Re: ginput problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771#858290</link>
      <author>TideMan</author>
      <description>On Nov 12, 4:30&#160;pm, &quot;Yagnaseni Roy&quot; &amp;lt;y...@mit.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; &quot;Michael Spurr&quot; &amp;lt;michael.sp...@nospam.selexgalileo.com&amp;gt; wrote in message &amp;lt;gi54pq$gi...@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; This is highly embarassing, but it turns out I was pressing 'return' on the wrong window! I was doing it on the Matlab window rather than the image window. It appears that my brain is already shutting down for the Christmas period!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks for the advice and sorry about the waste of time.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Michael&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; glad to know your problem got sorted...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On the other hand, I'm trying to plot all the data points that I selected using ginput at once on a single plot....&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I tried:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; M = mmreader('fractogene.avi');&lt;br&gt;
&amp;gt; &#160; &#160; N = M.NumberOfFrames;&lt;br&gt;
&amp;gt; &#160; &#160; for ii = 1:N&lt;br&gt;
&amp;gt; &#160; &#160;image(M.read(ii));&lt;br&gt;
&amp;gt; &#160; &#160;[X,Y]=ginput(1);&lt;br&gt;
&amp;gt; &#160; &#160;pause(0.1)&lt;br&gt;
&amp;gt; &#160; &#160; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; THEN TO GET THE PLOT, I TRIED:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; for ii=1:N&lt;br&gt;
&amp;gt; plot(X,Y)&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; BUT IT JUST GIVE ONE SINGLE POINT AS THE OUTPUT...I dont get the N data points that I'm supposed to...&lt;br&gt;
&amp;gt; Please tell me what's wrong!&lt;br&gt;
&lt;br&gt;
You need to read Getting Started in Help.&lt;br&gt;
In particular, look at defining vectors and using a for loop.</description>
    </item>
    <item>
      <pubDate>Sat, 12 Nov 2011 17:24:11 -0500</pubDate>
      <title>Re: ginput problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771#858305</link>
      <author>Yagnaseni Roy</author>
      <description>&quot;Michael Spurr&quot; &amp;lt;michael.spurr@nospam.selexgalileo.com&amp;gt; wrote in message &amp;lt;gho80e$bv2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I'm having trouble with the ginput command. I use it in a program to extract data points from a graph displayed on screen by clicking the mouse on the axes and plot. Previously, this program and ginput worked without any problem. However, just today I tried to use the program again and nothing happened after the first use of ginput. I selected the points on the plot and pressed return, after which Matlab displayed the 'busy' status indicator but did not move on to the next part of the program. When forcing the program to stop through control-c, I got the following message:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; ginput at 99&lt;br&gt;
&amp;gt; 	keydown = wfbp;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; plot_sample at 17&lt;br&gt;
&amp;gt; [X,Y] = ginput;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Has anyone come across this problem? Any idea why ginput has suddenly stopped working for me?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Many thanks,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Michael&lt;br&gt;
&lt;br&gt;
Could you be more specific to what exactly the problem is? With what you said, I'm not too far from where I started!</description>
    </item>
    <item>
      <pubDate>Sat, 12 Nov 2011 18:15:14 -0500</pubDate>
      <title>Re: ginput problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771#858311</link>
      <author>Yagnaseni Roy</author>
      <description>&quot;Yagnaseni Roy&quot; &amp;lt;yroy@mit.edu&amp;gt; wrote in message &amp;lt;j9ma3r$mu6$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Michael Spurr&quot; &amp;lt;michael.spurr@nospam.selexgalileo.com&amp;gt; wrote in message &amp;lt;gho80e$bv2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; I'm having trouble with the ginput command. I use it in a program to extract data points from a graph displayed on screen by clicking the mouse on the axes and plot. Previously, this program and ginput worked without any problem. However, just today I tried to use the program again and nothing happened after the first use of ginput. I selected the points on the plot and pressed return, after which Matlab displayed the 'busy' status indicator but did not move on to the next part of the program. When forcing the program to stop through control-c, I got the following message:&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Error in ==&amp;gt; ginput at 99&lt;br&gt;
&amp;gt; &amp;gt; 	keydown = wfbp;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Error in ==&amp;gt; plot_sample at 17&lt;br&gt;
&amp;gt; &amp;gt; [X,Y] = ginput;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Has anyone come across this problem? Any idea why ginput has suddenly stopped working for me?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Many thanks,&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Michael&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Could you be more specific to what exactly the problem is? With what you said, I'm not too far from where I started!&lt;br&gt;
&lt;br&gt;
ITS OK,I modified my for loop and I got my desired results:&lt;br&gt;
&lt;br&gt;
for ii= 1:N&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hold on&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plot(x(ii),y(ii),'ro')&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;hold off&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&lt;br&gt;
thanks.</description>
    </item>
    <item>
      <pubDate>Sat, 12 Nov 2011 19:49:51 -0500</pubDate>
      <title>Re: ginput problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771#858316</link>
      <author>TideMan</author>
      <description>On Nov 13, 7:15&#160;am, &quot;Yagnaseni Roy&quot; &amp;lt;y...@mit.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; &quot;Yagnaseni Roy&quot; &amp;lt;y...@mit.edu&amp;gt; wrote in message &amp;lt;j9ma3r$mu...@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Michael Spurr&quot; &amp;lt;michael.sp...@nospam.selexgalileo.com&amp;gt; wrote in message &amp;lt;gho80e$bv...@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I'm having trouble with the ginput command. I use it in a program to extract data points from a graph displayed on screen by clicking the mouse on the axes and plot. Previously, this program and ginput worked without any problem. However, just today I tried to use the program again and nothing happened after the first use of ginput. I selected the points on the plot and pressed return, after which Matlab displayed the 'busy' status indicator but did not move on to the next part of the program. When forcing the program to stop through control-c, I got the following message:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; ginput at 99&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &#160; &#160; &#160; keydown = wfbp;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; plot_sample at 17&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; [X,Y] = ginput;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Has anyone come across this problem? Any idea why ginput has suddenly stopped working for me?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Many thanks,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Michael&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Could you be more specific to what exactly the problem is? With what you said, I'm not too far from where I started!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ITS OK,I modified my for loop and I got my desired results:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; for ii= 1:N&lt;br&gt;
&amp;gt; &#160; &#160; &#160; &#160;hold on&lt;br&gt;
&amp;gt; &#160; &#160; &#160; &#160;plot(x(ii),y(ii),'ro')&lt;br&gt;
&amp;gt; &#160; &#160; &#160; &#160;hold off&lt;br&gt;
&amp;gt; &#160; &#160;end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; thanks.&lt;br&gt;
&lt;br&gt;
But you don't need a loop for this.&lt;br&gt;
Just&lt;br&gt;
plot(x,y,'ro')&lt;br&gt;
will do.&lt;br&gt;
&lt;br&gt;
Once again I suggest you read Getting Started.</description>
    </item>
    <item>
      <pubDate>Sat, 12 Nov 2011 19:53:10 -0500</pubDate>
      <title>Re: ginput problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771#858317</link>
      <author>Yagnaseni Roy</author>
      <description>&quot;Yagnaseni Roy&quot; &amp;lt;yroy@mit.edu&amp;gt; wrote in message &amp;lt;j9md3i$279$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Yagnaseni Roy&quot; &amp;lt;yroy@mit.edu&amp;gt; wrote in message &amp;lt;j9ma3r$mu6$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Michael Spurr&quot; &amp;lt;michael.spurr@nospam.selexgalileo.com&amp;gt; wrote in message &amp;lt;gho80e$bv2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I'm having trouble with the ginput command. I use it in a program to extract data points from a graph displayed on screen by clicking the mouse on the axes and plot. Previously, this program and ginput worked without any problem. However, just today I tried to use the program again and nothing happened after the first use of ginput. I selected the points on the plot and pressed return, after which Matlab displayed the 'busy' status indicator but did not move on to the next part of the program. When forcing the program to stop through control-c, I got the following message:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; ginput at 99&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 	keydown = wfbp;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; plot_sample at 17&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; [X,Y] = ginput;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Has anyone come across this problem? Any idea why ginput has suddenly stopped working for me?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Many thanks,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Michael&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Could you be more specific to what exactly the problem is? With what you said, I'm not too far from where I started!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ITS OK,I modified my for loop and I got my desired results:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; for ii= 1:N&lt;br&gt;
&amp;gt;        hold on&lt;br&gt;
&amp;gt;        plot(x(ii),y(ii),'ro')&lt;br&gt;
&amp;gt;        hold off&lt;br&gt;
&amp;gt;    end&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thanks.&lt;br&gt;
&lt;br&gt;
I'M SORRY TO BE ADDING A trivial post, but I'm new to MATLAB and I need to know what options matlab's huger resource has for me....&lt;br&gt;
I'm basically trying to plot the positions and velocity of a cell as it moves from frame to frame in a video. The problem is that the video has tremendous background noise and its hard to locate the cell.&lt;br&gt;
&lt;br&gt;
So using ginput serves my purpose, though it takes up a lot of time and manual input. So is there any other function that might suit my situation?&lt;br&gt;
&lt;br&gt;
I've already split my video into its frames, and u can see some of the frames on:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://imgur.com/D60kG&quot;&gt;http://imgur.com/D60kG&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://imgur.com/4Yvy5&quot;&gt;http://imgur.com/4Yvy5&lt;/a&gt; &lt;br&gt;
&lt;a href=&quot;http://imgur.com/D60kG&quot;&gt;http://imgur.com/D60kG&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://imgur.com/TvSNv&quot;&gt;http://imgur.com/TvSNv&lt;/a&gt;  </description>
    </item>
    <item>
      <pubDate>Sat, 12 Nov 2011 21:28:11 -0500</pubDate>
      <title>Re: ginput problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240771#858322</link>
      <author>Yagnaseni Roy</author>
      <description>TideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;d3533eca-f345-4cfe-a078-036aba2803dc@h5g2000yqk.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Nov 13, 7:15&#160;am, &quot;Yagnaseni Roy&quot; &amp;lt;y...@mit.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &quot;Yagnaseni Roy&quot; &amp;lt;y...@mit.edu&amp;gt; wrote in message &amp;lt;j9ma3r$mu...@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;Michael Spurr&quot; &amp;lt;michael.sp...@nospam.selexgalileo.com&amp;gt; wrote in message &amp;lt;gho80e$bv...@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I'm having trouble with the ginput command. I use it in a program to extract data points from a graph displayed on screen by clicking the mouse on the axes and plot. Previously, this program and ginput worked without any problem. However, just today I tried to use the program again and nothing happened after the first use of ginput. I selected the points on the plot and pressed return, after which Matlab displayed the 'busy' status indicator but did not move on to the next part of the program. When forcing the program to stop through control-c, I got the following message:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; ginput at 99&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &#160; &#160; &#160; keydown = wfbp;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; plot_sample at 17&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; [X,Y] = ginput;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Has anyone come across this problem? Any idea why ginput has suddenly stopped working for me?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Many thanks,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Michael&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Could you be more specific to what exactly the problem is? With what you said, I'm not too far from where I started!&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; ITS OK,I modified my for loop and I got my desired results:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; for ii= 1:N&lt;br&gt;
&amp;gt; &amp;gt; &#160; &#160; &#160; &#160;hold on&lt;br&gt;
&amp;gt; &amp;gt; &#160; &#160; &#160; &#160;plot(x(ii),y(ii),'ro')&lt;br&gt;
&amp;gt; &amp;gt; &#160; &#160; &#160; &#160;hold off&lt;br&gt;
&amp;gt; &amp;gt; &#160; &#160;end&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; thanks.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; But you don't need a loop for this.&lt;br&gt;
&amp;gt; Just&lt;br&gt;
&amp;gt; plot(x,y,'ro')&lt;br&gt;
&amp;gt; will do.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Once again I suggest you read Getting Started.&lt;br&gt;
&lt;br&gt;
ACTUALLY, I'm doing it for a video, and I need it to apply to all the frames, so I do need a loop..</description>
    </item>
  </channel>
</rss>

