octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem while using waitforbuttonpress function


From: Przemek Klosowski
Subject: Re: Problem while using waitforbuttonpress function
Date: Thu, 03 Jun 2010 13:01:24 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b1 Thunderbird/3.0.4

On 06/03/2010 05:14 AM, Giovanni Parodi wrote:
Good morning,
I'm trying to use the waitforbuttonpress method in my .m file but it
seems that it doesn't work (Octave-3.2.4).

Well, I just tried your code in 3.2.4 on Fedora 13 and it ran through
the loop, printing
TEST_2
 TEST_0
 TEST_1
when I typed a character (and just TEST_2 and TEST_1 when clicked).
Do you change focus to the image window when you do your typing/clicking? What OS are you using?

    warning: implicit conversion from real matrix to real scalar
    warning: implicit conversion from real matrix to real scalar
    warning: implicit conversion from real matrix to real scalar
    warning: implicit conversion from real matrix to real scalar

These errors are from ginput(), which calls

stream = get (f, "__plot_stream__");
...
fprintf(stream....

and the property __plot_stream__ has multiple values. I think this should be changed to

stream = get (f, "__plot_stream__")(1);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]