Script for a behavioral experiment
2 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
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.
0 Comments
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!