[Top][All Lists]

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

Problem while using waitforbuttonpress function

From: Giovanni Parodi
Subject: Problem while using waitforbuttonpress function
Date: Thu, 03 Jun 2010 14:32:59 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv: Gecko/20100216 Lightning/1.0b1 Thunderbird/3.0.2

A furter detail:
I'm using the Windows version of Octave 3.2.4.
The same problem happens if I write:

    figure(); A=waitforbuttonpress();

on the Octave interface.
If I press a keyboard key (or a mouse button) nothing happens and the Octave locks waiting for a button press.If I press CTRL-C to unlock Octave, looking at A value I get:
    error: `A' undefined near line 1 column 1

Obviously I misunderstood the way waitforbuttonpress works, but the same code works fine in Matlab, and I found nothing strange in the documentation of waitforbuttonpress in Octave.

Giovanni Parodi
Firmware Engineer
Divisione Automazione, Logistica e Trasporti, Laboratorio LHW

ElsagDatamat S.p.A.
Via Puccini 2 16154 Genova
Phone: +39 010 6583846

reply via email to

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