pos_name = {'A1' 'A3' 'A6' 'B1' 'B2' 'B3' 'B4' 'C1' 'C3' 'C6'};
t = -100:(300/1500):200;
addpath /home/lau/matlab/fieldtrip
addpath /home/lau/matlab/fieldtrip/external/mne/
ft_defaults
%% Load data
epoch = cell(1,10);
path = '/home/lau/analyses/sef_data_second_benchmarking/data/MEG/NatMEG_0009/151210/4_cleaned_epochs/';

for pos=1:10
    fname = strcat(path, pos_name{pos},'_manually_cleaned-epo.mat');
    load(fname)
    epoch{pos} = data; %% from load(fname)
end
%% Bootstrap data
[evoked_boot, std_dev, evoked_orig, epoch] = bootstrap_epochs(epoch, 1000);
save std_dev std_dev
