MATLAB: Filters – time domain

filtertime domain

I would like to use a filter to re-position parts of a signal so that they oscillate around zero. My signal has a mixture of parts that are correct and those that are off by a certain amount. Can you suggest the best filter to do this as I would like to keep my signal in the time – domain

Best Answer

If I understand you Question correctly, a high-pass filter that filters out the lowest frequencies (including the d-c offset) will work. If you have high-frequency noise, a bandpass filter would be best.
There are several ways to design filters in MATLAB, including dfilt and designfilt. My filter design procedure is here: How to design a lowpass filter for ocean wave data in Matlab?
Related Question