-
Notifications
You must be signed in to change notification settings - Fork 0
/
setCondition.m
97 lines (61 loc) · 1.84 KB
/
setCondition.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
% Sets order of conditions based on subject number
%% Condition 1
if condition_exp == 0
transition
instructions = 'Voce esta pronta(o) para o experimento real? \n Pressione a barra espaçadora.\n ';
Screen('TextFont', window, 'Avenir');
Screen('TextSize', window, 35);
DrawFormattedText(window, instructions, 'center', 'center', 0, [], [], [], 1.5);
Screen('Flip', window);
[~, ~, ~] = KbWait([], 2);
stim = 0
experiment = 0
control
transition
stim = 3
one_back_practiceTBPM
transition
stim = 0
experiment = 1
one_back_mateusV
%% Condition two
elseif condition_exp == 1
transition
instructions = 'Voce esta pronta(o) para o experimento real? \n Pressione a barra espaçadora.\n ';
Screen('TextFont', window, 'Avenir');
Screen('TextSize', window, 35);
DrawFormattedText(window, instructions, 'center', 'center', 0, [], [], [], 1.5);
Screen('Flip', window);
[~, ~, ~] = KbWait([], 2);
stim = 1
experiment = 0
control
transition
stim = 3
one_back_practiceTBPM
transition
stim = 1
experiment = 1
one_back_mateusV
%% Condition 3
elseif condition_exp == 2
transition
instructions = 'Voce esta pronta(o) para o experimento real? \n Pressione a barra espaçadora.\n';
Screen('TextFont', window, 'Avenir');
Screen('TextSize', window, 35);
DrawFormattedText(window, instructions, 'center', 'center', 0, [], [], [], 1.5);
Screen('Flip', window);
[~, ~, ~] = KbWait([], 2);
stim = 2
experiment = 0
control
transition
stim = 3
one_back_practiceTBPM
transition
stim = 2
experiment = 1
one_back_mateusV
end
% Final screen & Exit
finalScreen