Script for a behavioral experiment

2 次查看(过去 30 天)
STEFANA
STEFANA 2023-4-25
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?

回答(1 个)

Kevin Holly
Kevin Holly 2023-4-25
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.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by