MATLAB: How to measure maximum frequency component present in the recorded EEG signal so that I can use right filter ahead

denoising eeg signalmaximum frequency measurement

I am working on a single channel EEG dataset but not able to apply hamming window based Low Pass Filter to it for denoising. I am using DenoiseF = filter (Hd,m); {Hd= window function, m= dataset} but it says "??? Undefined function or method 'filter' for input arguments of type 'cell'." Also I need to know maximum frequency component in my signal so that I can decide whether I need to filter it or it is already in usable range. Someone please help. May be I am not using right codes in Matlab.

Best Answer

See the documentation on the fir1 (link) function. It uses a Hamming window by default.
Use the filtfilt function to do the actual filtering.