Script for a behavioral experiment

1 visualización (últimos 30 días)
STEFANA
STEFANA el 25 de Abr. de 2023
Respondida: Kevin Holly el 25 de Abr. de 2023
Hi! I need to write in Matlab the script for an experiment in which I measure Reaction Times.
Essentially, I will present a short video (2 s) and after an image with a sentence. Participants have to press a button if the sentence makes sense or they don't have to press anything if the sentence doesn't make sense.
Any Suggestion?

Respuestas (1)

Kevin Holly
Kevin Holly el 25 de Abr. de 2023
You could create an app with App Designer. See video below:
You could display the video on a uiimage or uiaxes. For the button you can use a uibutton. All of these uicomponents can be dragged onto the canvas (uifigure) within App Designer, which will automatically generate code for you. You can right click the uicomponents to add callback functions (in your case for the uibutton to log when the user clicks the button. You could utilize the built-in functions tic and toc to record the time in which the button was pressed.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by