figure(6)
hold on


S = struct;
S.sampletimes =[0 25 50 75 100 125 150 175 200 225 250 275 300 325 350 375 0]; % questi sono i tempi di partenza delle finestre
S.D = '/Users/benedetta/Desktop/Images_Paper/trye/2mCespmeeg_NCCAM_2012_T3_REM_MMN_Filtered1-25_ICA_pruned_avgref_validstd.mat';
S.image = '/Users/benedetta/Desktop/Images_Paper/trye/con_0001.nii';
window = [0 1]; % average window
S.style = 'ft';
S.figure = 6;
S.clim = [-0.008 0.008];

for tsample=1:16
    S.window = window + S.sampletimes(tsample);
    S.subplot = tsample;
    spm_eeg_img2maps(S)
    title(num2str(S.sampletimes(tsample)))
end
