Script for a behavioral experiment

조회 수: 2 (최근 30일)
STEFANA
STEFANA 2023년 4월 25일
답변: Kevin Holly 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