Path: news.mathworks.com!not-for-mail
From: "Michael Spurr" <michael.spurr@nospam.selexgalileo.com>
Newsgroups: comp.soft-sys.matlab
Subject: ginput problem
Date: Wed, 10 Dec 2008 11:09:02 +0000 (UTC)
Organization: SELEX Galileo
Lines: 13
Message-ID: <gho80e$bv2$1@fred.mathworks.com>
Reply-To: "Michael Spurr" <michael.spurr@nospam.selexgalileo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1228907342 12258 172.30.248.38 (10 Dec 2008 11:09:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 10 Dec 2008 11:09:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1423482
Xref: news.mathworks.com comp.soft-sys.matlab:506068


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:

Error in ==> ginput at 99
	keydown = wfbp;

Error in ==> plot_sample at 17
[X,Y] = ginput;

Has anyone come across this problem? Any idea why ginput has suddenly stopped working for me?

Many thanks,

Michael