-
Notifications
You must be signed in to change notification settings - Fork 0
/
getAllExps.m
58 lines (44 loc) · 1.05 KB
/
getAllExps.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
function getAllExps(subject)
if nargin<1
subject = 'JC001';
% subject = 'M140711_MK014';
end
currDir = cd('\\zserver.cortexlab.net\Code\Rigging\main');
oldList = dat.listExps(subject);
for iExp = 1:length(oldList)
try
tm = TMaze(oldList{iExp});
fprintf('%s: % 4.0f trials\n', oldList{iExp}, tm.nTrials);
catch
end
end
cd(currDir);
newList = dat.listExps(subject);
newList = newList(end-1:end);
nExps = length(newList);
for iExp = nExps-1:nExps
try
tm = TMaze(newList{iExp});
fprintf('%s: % 4.0f trials\n', newList{iExp}, tm.nTrials);
tm = tm.getPCData;
tm = tm.fitPC;
ax = subplot(1, nExps, iExp);
tm.showPC(ax);
catch e
fprintf('%s: %s\n', newList{iExp}, e.message)
end
end
end
%%
function list = get2pFiles(ExpRef)
end
function list = getTimelineFiles(ExpRef)
end
function list = getExpInfoFiles(ExpRef)
end
function list = getHardwareInfoFiles(ExpRef)
end
function list = getTrodesFiles(ExpRef)
end
function list = getEyeTrackingFiles(ExpRef)
end