Smooth data over a certain frequency?

2 views (last 30 days)
mstackmann
mstackmann on 8 Aug 2016
Answered: Star Strider on 8 Aug 2016
My data, traces over time, contain noise that seems to happen at a frequency of 3 to 4 Hz. What is the best way to smooth out this type of noise at a specific frequency without losing peak data?

Answers (1)

Star Strider
Star Strider on 8 Aug 2016
Without having your signal, I cannot provide specific code. To eliminate frequency-limited noise, I would use a bandstop filter with a stopband of 3 Hz to 4 Hz.
There are several ways to design filters in MATLAB, including dfilt and designfilt. My filter design procedure for IIR filters is here: How to design a lowpass filter for ocean wave data in Matlab? See the documentation for all the functions mentioned for an explanation of their options.

Community Treasure Hunt

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

Start Hunting!