It looks like something has changed on me.
I've been shown that my selectdata code no longer runs, at least in R2007b.
I've not tested it in R2008a, although I will.
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?
objectId=13857&objectType=FILE
It sets buttondown and buttonup functions on a figure, then does a uiwait.
The buttonup call is a nested function that does some cleanup, and then does
a uiresume. At this point the code seems to hang completely. This code
fragment previously ran with no problems:
plot(rand(5,2),rand(5,2),'o')
[pind,xs,ys] = selectdata('selectionmode','bru')
On the button up, it should return a list of any points that were brushed over
during the time the mouse button was down.
Now it just hangs. If I control-c out at this point, then it returns the proper
results. I've even run through it with the debugger to trap what happens after
the uiresume. Matlab becomes unresponsive, at least until I control-c out.
Any ideas on what has changed? I'd rather not need to have two versions up
there, one for older releases than R2007b.
Thanks,
John
|
|
0
|
|
|
|
Reply
|
woodchips (7921)
|
7/31/2008 1:18:02 AM |
|
I have 2007b at work. Tomorrow I will check and verify this
report.
I have found other bugs (or, more closely, aberrant
behaviors) in 2007b that weren't there in 2007a, maybe
someone fell asleep on the 'production line."
|
|
0
|
|
|
|
Reply
|
spamanon (2437)
|
7/31/2008 3:07:41 AM
|
|
I have 2007b at work. Tomorrow I will check and verify this
report.
I have found other bugs (or, more closely, aberrant
behaviors) in 2007b that weren't there in 2007a, maybe
someone fell asleep on the 'production line."
|
|
0
|
|
|
|
Reply
|
spamanon (2437)
|
7/31/2008 3:13:02 AM
|
|
"John D'Errico" <woodchips@rochester.rr.com> wrote in
message <g6r3sa$jeu$1@fred.mathworks.com>...
> It looks like something has changed on me.
>
> I've been shown that my selectdata code no longer runs, at
least in R2007b.
> I've not tested it in R2008a, although I will.
>
> <SNIP>
>
> Thanks,
> John
John, firstly, that is a fantastic function. Big thumbs up.
Particularly the lasso. Makes my dodgy rubber band selection
look rather sad!
I'm using 2008a and had no problems running the following
code and selecting a region:
figure; plot(1:10, '.')
[pind,xs,ys] = selectdata('selectionmode','lasso')
Rod
|
|
0
|
|
|
|
Reply
|
readmore1 (121)
|
7/31/2008 4:05:08 AM
|
|
"John D'Errico" <woodchips@rochester.rr.com> schrieb im Newsbeitrag
news:g6r3sa$jeu$1@fred.mathworks.com...
> It looks like something has changed on me.
>
> I've been shown that my selectdata code no longer runs, at least in
> R2007b.
> I've not tested it in R2008a, although I will.
>
> http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?
> objectId=13857&objectType=FILE
>
> It sets buttondown and buttonup functions on a figure, then does a uiwait.
> The buttonup call is a nested function that does some cleanup, and then
> does
> a uiresume. At this point the code seems to hang completely. This code
> fragment previously ran with no problems:
>
> plot(rand(5,2),rand(5,2),'o')
> [pind,xs,ys] = selectdata('selectionmode','bru')
>
> On the button up, it should return a list of any points that were brushed
> over
> during the time the mouse button was down.
>
> Now it just hangs. If I control-c out at this point, then it returns the
> proper
> results. I've even run through it with the debugger to trap what happens
> after
> the uiresume. Matlab becomes unresponsive, at least until I control-c out.
>
> Any ideas on what has changed? I'd rather not need to have two versions up
> there, one for older releases than R2007b.
>
> Thanks,
> John
Hi John,
strange: I've run your program (very nice indeed!) both on R2007b and R2008a
but could not reproduce your problem (on Windows XP)...
Titus
|
|
0
|
|
|
|
Reply
|
titus.edelhofer (1621)
|
7/31/2008 8:41:23 AM
|
|
"Titus" <titus.edelhofer@mathworks.de> wrote in message
<g6rtrj$9e4$1@fred.mathworks.com>...
>
> "John D'Errico" <woodchips@rochester.rr.com> schrieb im Newsbeitrag
> news:g6r3sa$jeu$1@fred.mathworks.com...
> > It looks like something has changed on me.
> >
> > I've been shown that my selectdata code no longer runs, at least in
> > R2007b.
> > I've not tested it in R2008a, although I will.
> >
> > http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?
> > objectId=13857&objectType=FILE
> >
> > It sets buttondown and buttonup functions on a figure, then does a
uiwait.
> > The buttonup call is a nested function that does some cleanup, and then
> > does
> > a uiresume. At this point the code seems to hang completely. This code
> > fragment previously ran with no problems:
> >
> > plot(rand(5,2),rand(5,2),'o')
> > [pind,xs,ys] = selectdata('selectionmode','bru')
> >
> > On the button up, it should return a list of any points that were brushed
> > over
> > during the time the mouse button was down.
> >
> > Now it just hangs. If I control-c out at this point, then it returns the
> > proper
> > results. I've even run through it with the debugger to trap what happens
> > after
> > the uiresume. Matlab becomes unresponsive, at least until I control-c
out.
> >
> > Any ideas on what has changed? I'd rather not need to have two versions
up
> > there, one for older releases than R2007b.
> >
> > Thanks,
> > John
>
> Hi John,
>
> strange: I've run your program (very nice indeed!) both on R2007b and
R2008a
> but could not reproduce your problem (on Windows XP)...
Titus, Rod,
Thanks. I'm glad you like it. I'm puzzled, since
the person who found the problem is running
Windows XP, SP3.
He had a coworker test it on R2008a, and it
works fine. And obviously, it worked fine for
me in the older release that I wrote it in.
John
|
|
0
|
|
|
|
Reply
|
woodchips (7921)
|
7/31/2008 1:50:19 PM
|
|
The tool works fine on my win-xp 64-bit with 2007b.
|
|
0
|
|
|
|
Reply
|
spamanon (2437)
|
7/31/2008 9:43:01 PM
|
|
|
6 Replies
42 Views
(page loaded in 0.086 seconds)
|