<div dir="ltr"><div><div><div><div>Hello<br><br></div>I have preprocessed my data using EEGlab and am running an FFT using fieldtrip. I convert my EEGlab dataset to fieldtrip format using:<br>data = eeglab2fieldtrip(EEG,'preprocessing','none');<br><br>No error occurs when I convert the data. My FFT code is:<br>cfg = [];<br>cfg.method = 'mtmfft';<br>cfg.taper = 'hanning'; <br>cfg.foilim = [4 7]; <br>cfg.output = 'pow';<br>freq = ft_freqanalysis(cfg,data);<br><br>When I try to run the FFT, I get the following error:<br><br>Reference to non-existent field 'trial'.<br><br>Error in ft_freqanalysis (line 382)<br>ntrials = numel(data.trial);<br><br>Error in FFT_MIST (line 22)<br>freq = ft_freqanalysis(cfg,data);<br><br>Error in Batch_FFT_MIST (line 11)<br>    FFT_MIST(subj);<br><br>Error in run (line 63)<br>evalin('caller', [script ';']);<br><br></div>Interestingly, I only get this error when I try running an FFT on data that has had channels interpolated using EEGlab's interpolation function. <br><br></div>I have 36 channels, but when I've interpolated some, fieldtrip seems to think the interpolated channels have been deleted. I.e., instead of saying "the input is raw data with 36 channels and 118 trials" it will say "the input is raw data with 34 channels and 118 trials".<br><br></div>Does anyone know why interpolating channels in EEGlab would throw fieldtrip off? Is there anyway I can correct for this?<br><br>Thanks,<br>Brittany<br></div>