Hello Brainstorm experts,
I would like to get some help as I am new to Brainstorm.
I have a time series (MEG) and want to
i) extract every 50ms, as follows:
0~50, 25~75, 50~100, 125~175, ..... and then
ii) average each (across time, so essentially getting a 50ms average throughout the epoch).
Below is what I have now.
start = 0.0;
en = 0.05;
for ii=1:30
% Process: Extract time
sFiles = bst_process('CallProcess', 'process_extract_time', sFiles, [],...
'timewindow', [start, en], ...
'overwrite', 0);
% Process: Average time
sFiles = bst_process('CallProcess', 'process_average_time', sFiles, [],...
'timewindow', [start, en], ...
'isstd', 0, ...
'overwrite', 1, ...
'source_abs', 0);
start = start+0.025;
en = en+0.025;
end
This code seems to work except that it generates one file for every 50ms (i.e., 30 files). Instead, I want one single file that contains 30 values. (How) can I do that? Hope my question was clear. Thanks!
