Statistical information on events

Hi Francois,

Could you advise how I fix this script? It works without the loops (giving me the result of the first subject only). I added the loops and used different labels but can't get it to work.

sFiles = bst_process('CallProcess', 'process_select_search', [], [], ...
'search', '(([name CONTAINS "resample"]))');

for iStudy = 1:length(sFiles.iStudy)
sStudy = bst_get('Study', sFiles.iStudy);
end

for i = 1:length(sStudy.Data)
DataMat = in_bst_data(sStudy.Data(i).FileName);
end

n = numel(DataMat.F.events(3).times)