<div dir="ltr">Hello,<div><br></div><div>My name is Peyton Finley and I am an undergraduate research student at Wheaton College in Wheaton, Illinois. I am emailing you regarding how to conduct a Fast Fourier Transform using FieldTrip.</div><div><br></div><div>Specifically, I am trying to use the function ft_freqstatistics.m to gather statistics for the FFT. The function requires what is noted as a "design matrix". This is the description:</div><div><br></div><div><div>Nxnumobservations: design matrix (for examples/advice, please see the Fieldtrip wiki,</div><div>                                  especially cluster-permutation tutorial and the 'walkthrough' design-matrix section)</div></div><div><br></div><div>I checked the FieldTrip wiki site, but I was unable to find anything on this design matrix. What is the design matrix and how do I construct it?</div><div><br></div><div>Also, is this the correct way of performing a FFT on EEG data? Is there an alternate method? Before arriving at this point, I have performed the following steps.</div><div><br></div><div><div>cfg = [];</div><div>ft_defaults;</div><div>cfg.dataset = dataset;</div><div>preprocdata=ft_preprocessing(cfg);</div><div>data=struct2single(preprocdata);</div><div><br></div><div>%% Define cfg for ft_frequanalysis.m and run.</div><div>cfg = [];</div><div>cfg.output='fourier';</div><div>cfg.method='mtmfft';</div><div>cfg.outputfile=outputFileName;</div><div>cfg.foilim=[0 55]; </div><div>cfg.tapsmofrq='2';</div><div>[freq]=ft_freqanalysis(cfg,data);</div><div><br></div><div>%% Define cfg for ft_freqstatistics.m and run.</div><div>cfg = [];</div><div>cfg.method='analytic';</div><div>[stat]=ft_freqstatistics(cfg, freq); </div></div><div><br></div><div><br></div><div>Sincerely,</div><div>Peyton Finley</div></div>