Creating two pressable boxes in a window and continuously obtain the state of the box (pressed or not)

1 visualización (últimos 30 días)
Hi everyone,
For my robotic project, I'd like to create a window in which 2 boxes appear (one for the right direction, one for the left direction, actionning the corresponding motor to move the robot). So, I'm looking for a solution in MATLAB to assign the state of the boxes (for example 1 if pressed, 0 if not), and "continuously" get this information until the user is satisfied with the position of the robot and leaves the window.
I've heard about the psychtoolbox but I'm not sure if I'm going in the right direction with it.
Any help is welcome :)
Have a good day !

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