-
Notifications
You must be signed in to change notification settings - Fork 0
/
load_data_gandhilab.m
59 lines (51 loc) · 1.65 KB
/
load_data_gandhilab.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
function datalist=load_data_gandhilab(data_path)
%analysis_trials_LMA
% Analysis of data tirals-by-trials recorded with a laminar probe (LMA)
% in gandhilab
%
% Corentin Massot
% Cognition and Sensorimotor Integration Lab, Neeraj J. Gandhi
% University of Pittsburgh
% created 11/03/2015 last modified 11/03/2015
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%read directory
files=dir(data_path);
datalist={};
dateslist=[];
ff=0;
for f=1:size(files),
file=files(f).name;
if length(file)>3,
ff=ff+1;
dateslist(ff)=str2num([file(17:18) file(13:16)]);
datalist{ff}=file;
end
end
%sort files according to date
[~,ind]=sort(dateslist);
datalist=datalist(ind);
% %get data SFN2015
% datalist={
% 'bl_sc_031115_mcell_spikelfp_cSC'; %
% 'bb_sc_031315_mcell_spikelfp_cSC'; %lowfreq lfps
% 'bb_sc_070915_mcell_spikelfp_cSC'; %low ok
% %'bb_sc_071215_mcell_spikelfp_cSC'; %lowfreq lfps
% 'bl_sc_071415_mcell_spikelfp_cSC';
% 'bl_sc_072315_1_mcell_spikelfp_cSC';
% 'bl_sc_072315_2_mcell_spikelfp_cSC';
% 'bb_sc_080415_mcell_spikelfp_cSC'; %low good
% }
%get data Data_SC
% datalist={
% 'bl_lSCTrack_033116_DelaySacc-A';
% 'bl_lSCTrack_033116_DelaySaccMem-A';
% 'bl_lSCTrack_033116_DelaySacc-A_vl';
% 'bl_lSCTrack_033116_DelaySaccMem-A_vl';
% 'bl_lSCTrack_033116_DelaySacc-8T-R';
%
% 'bl_lSCTrack_033016_DelaySacc-A';
% 'bl_lSCTrack_033016_DelaySaccMem-A';
% 'bl_lSCTrack_033016_DelaySacc-A_vl';
% 'bl_lSCTrack_033016_DelaySaccMem-A_vl';
% 'bl_lSCTrack_033016_DelaySacc-8T-R';
% }