-
Notifications
You must be signed in to change notification settings - Fork 0
/
CuedOutcome_Sensors_Phase.m
77 lines (68 loc) · 4.32 KB
/
CuedOutcome_Sensors_Phase.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
function [trialsNames, trialsMatrix]=CuedOutcome_Sensors_Phase(S,PhaseName)
switch PhaseName
case 'L1-CuedReward'
trialsNames={'Cue A Reward','Uncued Reward',...
'blank','blank',...
'blank','blank'};
trialsMatrix=[...
% 1.type, 2.proba, 3.sound, 4.delay, 5.valve, 6.Outcome 7.Marker
1, 0.8, 1, S.GUI.Delay, S.GUI.RewardValve, S.InterRew, double('o');...
2, 0.2, 5, S.GUI.Delay, S.GUI.RewardValve, S.InterRew, double('o')];
case 'L2-RewardSize'
trialsNames={'Cue A Reward','Cue A Small Reward',...
'Cue A Big Reward','blank',...
'blank','blank'};
trialsMatrix=[...
% 1.type, 2.proba, 3.sound, 4.delay, 5.valve, 6.Outcome 7.Marker
1, 0.8, 1, S.GUI.Delay, S.GUI.RewardValve, S.InterRew, double('o');...
2, 0.1, 1, S.GUI.Delay, S.GUI.RewardValve, S.SmallRew, double('s');...
3, 0.1, 1, S.GUI.Delay, S.GUI.RewardValve, S.LargeRew, double('d')];
case 'L3-SecondaryCue'
trialsNames={'Cue C, Cue A Reward',...
'blank','blank','blank','blank','blank'};
trialsMatrix=[...
% 1.type, 2.proba, 3.sound, 4.delay, 5.valve, 6.Outcome 7.Marker
1, 1, 1, S.GUI.Delay, S.GUI.RewardValve, S.SmallRew, double('o')];
case 'V1-Probability'
trialsNames={'Cue A Reward','Cue B Reward','Cue B Omission'...
'blank','blank','blank'};
trialsMatrix=[...
% 1.type, 2.proba, 3.sound, 4.delay, 5.valve, 6.Outcome 7.Marker
1, 0.5, 1, S.GUI.Delay, S.GUI.RewardValve, S.InterRew, double('o');...
2, 0.25, 2, S.GUI.Delay, S.GUI.RewardValve, S.InterRew, double('o');...
3, 0.25, 2, S.GUI.Delay, S.GUI.OmissionValve, S.InterRew, double('s')];
case 'V2-Extinction'
trialsNames={'Cue A Omission','Cue B Reward','Cue B Omission'...
'blank','blank','blank'};
trialsMatrix=[...
% 1.type, 2.proba, 3.sound, 4.delay, 5.valve, 6.Outcome 7.Marker
1, 0.5, 1, S.GUI.Delay, S.GUI.OmissionValve, S.InterRew, double('s');...
2, 0.25, 2, S.GUI.Delay, S.GUI.RewardValve, S.InterRew, double('o');...
3, 0.25, 2, S.GUI.Delay, S.GUI.OmissionValve, S.InterRew, double('s')];
case 'S-RewPun'
trialsNames={'Cue A Big Reward','Cue B Small Reward',...
'Cue C Big Punish.','Cue D Small Punish.',...
'blank','blank'};
trialsMatrix=[...
% 1.type, 2.proba, 3.sound, 4.delay, 5.valve, 6.Outcome 7.Marker
1, 0.25, 1, S.GUI.Delay, S.GUI.RewardValve, S.LargeRew, double('o');...
2, 0.25, 2, S.GUI.Delay, S.GUI.RewardValve, S.SmallRew, double('d');...
3, 0.25, 3, S.GUI.Delay, S.GUI.PunishValve, S.GUI.PunishTime*2, double('s');...
4, 0.25, 4, S.GUI.Delay, S.GUI.PunishValve, S.GUI.PunishTime/2, double('d')];
case 'Habituation'
trialsNames={'Habituation','blank'...
'blank','blank',...
'blank','blank'};
trialsMatrix=[...
% 1.type, 2.proba, 3.sound, 4.delay, 5.valve, 6.Outcome 7.Marker
1, 1, 5, S.GUI.Delay, S.GUI.OmissionValve, S.LargeRew, double('o')];
case 'Habituation-Water'
trialsNames={'Reward','Habituation'...
'blank','blank',...
'blank','blank'};
trialsMatrix=[...
% 1.type, 2.proba, 3.sound, 4.delay, 5.valve, 6.Outcome 7.Marker
1, 0.5, 5, S.GUI.Delay, S.GUI.RewardValve, S.InterRew, double('o');...
2, 0.5, 5, S.GUI.Delay, S.GUI.OmissionValve, S.InterRew, double('s')];
end
end