Usage of Savitzky-Golay filter in preprocessing of EEG wave #486

Brainewbee (2022-01-27 10:08) · 464 view(s)

I am planning to do preprocess EEG vave using Savitzky-Golay filter, but I am not quite sure about how to use it.

I wonder if you could give me some advice about ... How did the window size (or so-called framelen) and order of polynomial were selected, is there a certain criteria?

The way i am doing now is using a MATLAB function called sgolayfilt

%% data = sgolayfilt(data,2,25);    

https://ww2.mathworks.cn/login/mwa-sso/check?uri=https%3A%2F%2Fww2.mathworks.cn%2Fhelp%2Fsignal%2Fref%2Fsgolayfilt.html%3FrequestedDomain%3Dcn" target="_blank">https://ww2.mathworks.cn/login/mwa-sso/check?uri=https%3A%2F%2Fww2.mathworks.cn%2Fhelp%2Fsignal%2Fref%2Fsgolayfilt.html%3FrequestedDomain%3Dcn