Skip to content

Incorrect use of eegfilt, epochframes must be at least 3 times the filtorder #199

@EILLLLA

Description

@EILLLLA

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.]

  1. 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.

  1. Extract Bin-Epoched Single Trials (BEST)

Convert the data to BEST format and select 'transform into phase-independent power'

image

  1. 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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions