-
Notifications
You must be signed in to change notification settings - Fork 1
/
getSceneScrambled.m
75 lines (70 loc) · 1.77 KB
/
getSceneScrambled.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
function wallTextures = getSceneScrambled(count)
% global EXP
global TRIAL
global SESSION
stimulus=TRIAL.stimulus(count);
contrast=TRIAL.contrast(count);
contrastIndex=find(SESSION.options.gratingContrasts==contrast);
gratingName=['COSGRATING', num2str(contrastIndex)];
stim2code=stimulus;
% if EXP.flipSides
% if isequal(stim2code, 'RIGHT')
% stim2code='LEFT';
% elseif isequal(stim2code, 'LEFT')
% stim2code='RIGHT';
% end
% end
% fprintf('%s %d%% contrast\n', stimulus, contrast);
switch stim2code
case 'R'
wallTextures={...
'GRAY';...
'WNWEAK';...
gratingName;...
'WNWEAK';...
gratingName;...
'WNWEAK';...
gratingName;...
'WNWEAK';...
'WNWEAK';...
gratingName;...
'WNSTRONG';...
'WNSTRONG';...
'WNSTRONG';...
'WNSTRONG';...
};
case 'L'
wallTextures={...
'GRAY';...
gratingName;...
'WNWEAK';...
gratingName;...
'WNWEAK';...
gratingName;...
'WNWEAK';...
gratingName;...
'WNWEAK';...
'WNWEAK';...
'WNSTRONG';...
'WNSTRONG';...
'WNSTRONG';...
'WNSTRONG';...
};
case 'B'
wallTextures={...
'GRAY';...
gratingName;...
gratingName;...
gratingName;...
gratingName;...
gratingName;...
gratingName;...
gratingName;...
'WNWEAK';...
gratingName;...
'WNSTRONG';...
'WNSTRONG';...
'WNSTRONG';...
'WNSTRONG';...
};
end