Script for a behavioral experiment

1 view (last 30 days)
STEFANA
STEFANA on 25 Apr 2023
Answered: Kevin Holly on 25 Apr 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?

Answers (1)

Kevin Holly
Kevin Holly on 25 Apr 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.

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!