-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoadDataset.m
65 lines (55 loc) · 2.31 KB
/
LoadDataset.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
function [N,S] = LoadDataset(fldname,param)
type = param.type;
option = param.option;
MUA_SUActl = param.mua_sua;
switch option
case ''
s = load([fldname,sprintf('S%s%s.mat',type,option)]);
S = s.info;
case 'MS'
S = [];
end
n = load([fldname,sprintf('N%s%s.mat',type,option)]);
N = n.info;
switch option
case ''
names = {'ytu310a','ytu312b','ytu316a','ytu321a','ytu323a','ytu329a','ytu333a','ytu335a','ytu337a'}; % MUA_SUA
% names = {'ytu312b','ytu316a','ytu323a','ytu329a','ytu335a','ytu337a'};
% names = {'ytu310a','ytu312b','ytu316a','ytu323a','ytu333a','ytu335a'};
% names = {'ytu312b','ytu316a','ytu323a','ytu329a','ytu335a','ytu337a'}; % ms_rmvd_150300
% Start MUA_SUA only
if MUA_SUActl == 1
N(7) = []; S(7) = [];
N(4) = []; S(4) = [];
N(1) = []; S(1) = [];
end
% end
case 'MS'
names = {'ytu312b','ytu316a','ytu323a','ytu329a','ytu335a','ytu337a'}; % MUA_SUA & ms_rmvd_150300
% names = {'ytu310a','ytu312b','ytu316a','ytu321a','ytu323a','ytu329a','ytu333a','ytu335a'};
end
% cd E:\MT_MST\Microstim\Norm\MUA_SUA\
% cd E:\MT_MST\Microstim\PSTH\ms_rmvd_150300\
% cd E:\MT_MST\Microstim\PSTH\SUA_SUA\
% cd E:\MT_MST\Microstim\PSTH\MST1_MUA_MT_SUA\
% cd E:\MT_MST\Microstim\PSTH\MUA-MST-V1V2\Norm\ % MUA_V1
% load(sprintf('S%s%s.mat',type,option))
% S = info;
% clear info
% load(sprintf('N%s%s.mat',type,option))
% N = info;
% switch option
% case ''
% % names = {'ytu312b','ytu316a','ytu323a','ytu329a','ytu335a','ytu337a'};
% names = {'ytu310a','ytu312b','ytu316a','ytu321a','ytu323a','ytu329a','ytu333a','ytu335a','ytu337a'}; % MUA_SUA
% % names = {'ytu310a','ytu312b','ytu316a','ytu323a','ytu333a','ytu335a'};
% % names = {'ytu312b','ytu316a','ytu323a','ytu329a','ytu335a','ytu337a'}; % ms_rmvd_150300
% % Start MUA_SUA only
% N(7) = []; S(7) = [];
% N(4) = []; S(4) = [];
% N(1) = []; S(1) = [];
% % end
% case 'MS'
% % names = {'ytu310a','ytu312b','ytu316a','ytu321a','ytu323a','ytu329a','ytu333a','ytu335a'};
% names = {'ytu312b','ytu316a','ytu323a','ytu329a','ytu335a','ytu337a'}; % MUA_SUA & ms_rmvd_150300
% end