Improvements of the ZapLine function to remove line noise from EEG/MEG data. Adds automatic detection of the number of components to remove, and chunks the data into segments to account for nonstationarities.
Description
[Description of the bug or feature
Attach a link to Dropbox or Google Drive with screenshots and your data if possible.]
Hi,
I'm trying to use zapline plugin to remove linenoise in my dataset with a default one line for running it: EEG = clean_data_with_zapline_plus_eeglab_wrapper(EEG,struct('noisefreqs','line')) % specifying the config is optional
Steps to Reproduce
I typed
EEG = clean_data_with_zapline_plus_eeglab_wrapper(EEG,struct('noisefreqs','line')) % specifying the config is optional,
following the line (this is what GUI produced as well).
Then I got an error in the command window.
Expected behavior: I was expecting that zapline function would work properly.
Actual behavior: This is the error message I got from this:
Undefined function 'bandpass' for input
arguments of type 'single'.
Error in clean_data_with_zapline_plus
(line 356)
data_narrowfilt =
bandpass(data,[noisefreq-detectionWinsize/2
noisefreq+detectionWinsize/2],srate);
Error in
clean_data_with_zapline_plus_eeglab_wrapper
(line 25)
[EEG.data, EEG.etc.zapline.config,
EEG.etc.zapline.analyticsResults,
plothandles] =
clean_data_with_zapline_plus(EEG.data,
EEG.srate, zaplineConfig);
Description [Description of the bug or feature Attach a link to Dropbox or Google Drive with screenshots and your data if possible.] Hi, I'm trying to use zapline plugin to remove linenoise in my dataset with a default one line for running it: EEG = clean_data_with_zapline_plus_eeglab_wrapper(EEG,struct('noisefreqs','line')) % specifying the config is optional
Steps to Reproduce
I typed EEG = clean_data_with_zapline_plus_eeglab_wrapper(EEG,struct('noisefreqs','line')) % specifying the config is optional, following the line (this is what GUI produced as well). Then I got an error in the command window.
Expected behavior: I was expecting that zapline function would work properly.
Actual behavior: This is the error message I got from this:
Undefined function 'bandpass' for input arguments of type 'single'. Error in clean_data_with_zapline_plus (line 356) data_narrowfilt = bandpass(data,[noisefreq-detectionWinsize/2 noisefreq+detectionWinsize/2],srate); Error in clean_data_with_zapline_plus_eeglab_wrapper (line 25) [EEG.data, EEG.etc.zapline.config, EEG.etc.zapline.analyticsResults, plothandles] = clean_data_with_zapline_plus(EEG.data, EEG.srate, zaplineConfig);