help-octave
[Top][All Lists]
Advanced

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

Re: Problem while using waitforbuttonpress function


From: Giox79
Subject: Re: Problem while using waitforbuttonpress function
Date: Sat, 5 Jun 2010 09:05:24 -0700 (PDT)

A last note: I tried 
using ginput in the following way (see 2 posts ago):

subplot(2,1,1);
fplot("sin",[0;2*pi]);
subplot(2,1,2);
fplot("cos",[0;2*pi]);
[x,y,r] = ginput(1)

and still it doesn't work (nor waitforbuttonpress).
I will investigate a bit the topic by my self.
Thanks a lot 
Giovanni




ginput


Giox79 wrote:
> 
> Hi Tatsuro,
> I tried the command:
> 
>  figure(); 
> 
> followed by 
>  [x,y,r]= ginput(1)
> 
> it works!
> Through it I can "discriminate" if a mouse or a keyboard event happened.
> I was sure that ginput was ok only for mouse events, but the r parameter
> tell me what happens in detail (as I expected to do waitforbuttonpress).
> You solved my problem thanks a lot.
> A last question: how to mark this topic as solved?
> Is there some way in this forum or not?
> Thanks again 
> Gio
> 
> 
> Tatsuro MATSUOKA-2 wrote:
>> 
>> Error correction.
>> 
>> BTW, did you try a=ginput(1) on octave for windows with graph plotted
>> (not figure() after figure)?
>> !
>> v
>> (not figure() after plot)?
>> 
>> 
>> 
>> --------------------------------------
>> 2010 FIFA World Cup News [Yahoo!Sports/sportsnavi]
>> http://pr.mail.yahoo.co.jp/southafrica2010/
>> 
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>> 
>> 
> 
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/Problem-while-using-waitforbuttonpress-function-tp2241404p2244328.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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