<div dir="ltr">Hi everyone,<div><br></div><div>I have some questions about both cleanline and the basic FIR filter:<br><br></div><div>1) Do you have any recommendation about which one should be used first? At the moment I'm doing this (cleanline first and then bandpass filtering):</div><div><br></div><div><div>[EEG, Sorig, Sclean, f, amps, freqs, g] = pop_cleanline(EEG, 'Bandwidth',2,'ChanCompIndices',[1:EEG.nbchan], ...</div><div>                          'SignalType','Channels','ComputeSpectralPower',true,             ...</div><div>                          'LineFrequencies',[50 100] ,'NormalizeSpectrum',false,           ...</div><div>                          'LineAlpha',0.01,'PaddingFactor',2,'PlotFigures',false,          ...</div><div>                          'ScanForLines',true,'SmoothingFactor',100,'VerboseOutput',1,    ...</div><div>                          'SlidingWinLength',EEG.pnts/EEG.srate,'SlidingWinStep',EEG.pnts/EEG.srate); </div></div><div><br></div><div>EEG = pop_eegfiltnew(EEG, 1, 70, 1650, 0, [], 1); <br></div><div><br></div><div>2) I'm doing the filtering before epoching the data (on continuous data). Can that lead to any problem with the filtering? </div><div>In cleanline: Both the 'SlidingWinLength' and 'SlidingWinStep' are the length of the recording. However, the 'SmootingFactor is 100, which shouldn't matter when the window length = EEG length.</div><div><br></div><div>3) Is there an easy way to figure out the filter order for pop_eegfiltnew? The current 1650 is just what was decided through the GUI. </div><div><br></div><div>Thanks a lot in advance.</div><div><br></div><div>Best,</div><div><br></div><div>Eric</div><div><br></div></div>