KbWait not working properly

10 visualizaciones (últimos 30 días)
Fed
Fed el 25 de Mzo. de 2015
Comentada: Fed el 25 de Mzo. de 2015
Dear all I am using KbWait function, it seems it is not working properly, since nothing happen when I run my script, that is:
left = KbName('leftarrow');
right = KbName('rightarrow');
mW = figure(1);
image1 = imread('MYFIGURE.png');
[secs,keyCode] = KbWait; %waits for a key press
What's wrong with this script? Thank you!
  2 comentarios
Titus Edelhofer
Titus Edelhofer el 25 de Mzo. de 2015
Hi Fed,
KbName and KbWait are not functions provided by MathWorks, where did you get them from? The one who wrote these functions/scripts should be able to help ...
Titus
Fed
Fed el 25 de Mzo. de 2015
Dear Titus, These are functions provide by the Psychtoolbox. Maybe do you know another way to save the selection of a pressed button? Thanks

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Timing and presenting 2D and 3D stimuli en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by