<div dir="ltr">Dear all,<div><br></div><div>I have a question (which might be very stupid) regarding the line noise removal using spectrum interpolation using DFT method.</div><div><br></div><div>currently, I'm applying the notch filter on my data, but I noticed for some of my subjects the 50Hz is not entirely removed. </div><div><br></div><div>I have 32-channel EEG data (with a sampling frequency of 2048) with many trials that have different lengths (from 15 seconds to 5 min). If I understood correctly the best method for removing the 50 Hz from this kind of data is spectrum interpolation. Unfortunately, I'm having a hard time making it to work. </div><div><br></div><div>here is what I have defined:</div><div>cfg.dftfilter       = 'yes';<br></div><div>cfg.dftreplace  = 'neighbour';<br></div><div>cfg.continuous = 'yes';<br></div><div>cfg.padding      =  (2^nextpow2(size(Data{1}.trial,2)))/Data{1}.fsample</div><div>cfg.padtype      =  'data'<br></div><div><br></div><div>so, my first trial has a length of 368200, which for the cfg.padding I use 256. </div><div>here is where I'm stuck and apparently I'm doing something wrong, which gives me this error:<br></div><div>=><b> "Padding by data mirroring is not supported for spectrum interpolation"</b><br></div><div>I also remove the option for continuous data, but it did not solve my problem.</div><div><br></div><div>I would appreciate any help!</div><div><br></div><div>Thanks a lot!</div><div>Philip</div><div><br></div><div><br></div></div>