왼쪽 또는 오른쪽에 표시된 10 가지 시도 (10 장의 그림)로 구성된 실험을 프로그래밍하고 싶습니다. 동시에 반대쪽에 홀수 또는 짝수가 표시됩니다. 반응 시간과 응답 (홀수 또는 짝수)을 측정하고 싶습니다. 나는 재판 구조에 붙어있는 것 같아.trial structure psychtoolbox 실험
그냥 ntrials = length(pictures)
을 정의하는 것으로 충분합니까? 아니면 변수 (pic_position
, number_position
)에 for 루프가 필요합니까?
pic_pos = {'left' 'right'};
num_pos = {'left' 'right'};
evenodd = {'odd' 'even'};
ntrials = length(pictures);
for n = 1:length(pictures)
trials(ntrials).picture = pictures(n)
end
pictures = Shuffle(pictures);
for trial = 1:ntrials
currentnumber = num2str(numbers{trial})
switch trials(trial).num_pos
case 'right'
x = screencentrex + img_dist
case 'left'
x = screencentrex - img_dist
end;
Screen('TextSize', win, [25]);
DrawFormattedText(win, currentnumber, [x], 'center', [255 255 255]);
Screen('Flip', win);
WaitSecs(3);
불행하게도 그것은 나에게 수를 표시하지 않습니다
이 지금까지 나의 접근 방식이다.