-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_beta_epochs_GC.m
53 lines (26 loc) · 1.16 KB
/
run_beta_epochs_GC.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
function run_beta_epochs_GC(group_names, win_lengths, smooth_lengths, start_indices)
if isempty(start_indices)
start_indices = zeros(length(group_names)*length(win_lengths)*length(smooth_lengths));
elseif start_indices ~= length(group_names)*length(win_lengths)*length(smooth_lengths);
display('The length of optional argument start_indices should be the product of the lengths of group_names, win_lengths, and smooth_lengths.')
return
end
run /projectnb/crc-nak/brpp/startup
cd /projectnb/crc-nak/brpp/PD_Data/
s = matlabpool('size');
if s == 0
matlabpool open 8
end
index = 1;
for g = 1:length(group_names)
for w = 1:length(win_lengths)
for s = 1:length(smooth_lengths)
PD_beta_epochs_GC(group_names{g}, 7, 2, win_lengths(w), smooth_lengths(s), start_indices(index))
PD_beta_epochs_GC_collect(group_names{g}, 7, 2, win_lengths(w), smooth_lengths(s))
PD_beta_epochs_GC_plot_group(group_names{g}, 7, 2, win_lengths(w), smooth_lengths(s))
end
end
end
if s == 0
matlabpool close
end