<div dir="ltr"><div><div>Hi community,<br><br></div>I am recently running EEG power spectrum analysis.<br><br></div><div>For some reason, I wanted to run the analysis with bootstrapped trials.<br></div><div>Is there anyway to apply bootstrap with ft_freqanalysis?<br>I tried adding bootstrap option in ft_sourceanalysis to ft_freqanalysis, but it doesn't work.<br><br> cfg = [];<br>cfg.foi         = 2:30;<br>cfg.method = 'mtmconvol';<br>cfg.taper     = 'hanning';<br>cfg.keeptrials = 'no';<br>cfg.t_ftimwin  = 3.2 ./ cfg.foi; <br>cfg.toi            = -0.5:0.01:0.6;<br>cfg.output      = 'powandcsd';<br>cfg.bootstrap = 'yes'; <br>cfg.numbootstrap  =  25; <br>% cfg.trials = 'all';<br>freq2{s} = ft_freqanalysis(cfg, data_concat_TFR(s));<br><br></div><div>Any help would be appreciated.<br><br></div><div>Best,<br></div><div>WanYu Hsu<br></div></div>