Sgolayfilt - FFT smoothing or oversmoothing.

4 views (last 30 days)
Quentin Meyer
Quentin Meyer on 16 Jul 2020
Edited: Quentin Meyer on 16 Jul 2020
I am trying to use the Sgolayfilt function on 4 FFTs I have been doing to obtain a signal with less noise.
  • However, I have a feeling I have either not set-up the sgolayfilt function properly (a little confused regarding how to implement the polynom order and the number of points, aside from trial and error), or I should be using a different function altogether.
I have attached my code (very rough and probably not very elegant, but that's ok) for some insights.
  • My issue is around B_221 and B_112 (Figure 1 and Figure 2), that look very much identical, but have very different FFTs (P1_221, and P1_112). I suspect perhaps a different filter should be used instead, and this is why I post the message on this forum.
  • Any assistance from a knowledgable audience would really help.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!