Incorrect use of eegfilt, epochframes must be at least 3 times the filtorder
Opened this issue · 3 comments
Description
[epochframes must be at least 3 times the filtorder. When use the estudio toolbox to create a BEST file and transform the data into phase-independent power, an error message will be displayed : epochframes must be at least 3 times the filtorder.]
- Load my data which have been preprocessed by esudio
My preprocessing steps include downsampling to 500 Hz, bandpass filtering from 0.1 to 30 Hz using the 'eegfilternew' function, performing bin-based epochs, whole brain average re-referencing, ICA removes blink artifacts, and removal of bad epochs exceeding ± 100 μV.
- Extract Bin-Epoched Single Trials (BEST)
Convert the data to BEST format and select 'transform into phase-independent power'
- Run and Error
I clicked RUN, and then the following error appeared.
“eegfilt(): filter order is 1500. Misuse eegfilt
epochframes must be at least 3 times the filtorder.
ERROR pop_extractbest (line 291 )
filtData(:,c,:) =abs(hilbert(eegfilt(squeeze(unfiltData(:,c,:)),fs_original,bandpass_freq(1,1),bandpass_freq(1,2))')').^2; %Instantaneous power
ERROR f_EEG_extr_best_GUI/avg_run (line 654 )
[BEST,LASTCOM] = pop_extractbest( EEG , 'Bins', binselec, 'Criterion', artcritestr,'DSindex',1, ...
Error calculating UIControl callback.”
I am expecting the smooth completion of this BEST operation, but it prompts the above error. I don't know how to adjust my parameters to ensure normal operation
#### Versions
OS version | [Windos 11] |
Matlab version | [2022b] |
EEGLAB version | [2023.1] |
ERPLAB version | [12.00] |
ERPLAB Studio version | [12.00] |