-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcloud_main.m
More file actions
31 lines (24 loc) · 782 Bytes
/
cloud_main.m
File metadata and controls
31 lines (24 loc) · 782 Bytes
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
% Add paths
addpath(genpath('/opt/psychtoolbox/'))
addpath(genpath('jsonlab-1.5'))
conf = loadjson('conf/example.json');
subjectNum = 100;
projectName = 'rtAttenPenn';
imgDirHeader = conf.imgDirHeader;
subjectRun = 1;
subjectName = [datestr(now,5) datestr(now,7) datestr(now,11) num2str(subjectRun) '_' projectName];
% **** types of stimuli to train/show to subjects *******
NEUTRAL = 1;
SAD = 2;
HAPPY = 3;
% *******************************************************
typeNum = HAPPY;
matchNum = 0;
realtimeData = 1;
KbName('UnifyKeyNames')
%% Generate expt sequence
GenerateExptSequence(subjectNum, subjectName, typeNum)
%% Run file process
runNum = 2;
fMRI = 16;
[patterns] = RealTimePunisherFileProcess(imgDirHeader,subjectNum,subjectName,matchNum,runNum,fMRI,realtimeData)