Filtering, Detrending, and Windowing of a Signal

Zero-phase bandpass digital filter with detrending and windowing


Updated 24 Apr 2023

View License

Process raw data with the following:-
-zero-phase bandpass digital filtering
-removing the straight-fit line from the data (detrending)
-windowing with tukey window
function Result=Filter_Detrend_Window(Sig,fs,fc1,fc2,orderh,orderl,taper)
Sig: input signal of size (N,n). N is signal length. n is the number of channels
fs: sampling frequency
fc1,fc2: filter cutoff frequencies for highpass and lowpass filters
orderh,orderl: filter orders for highpass and lowpass filters
taper: window taper ratio of tukey windowing (Typical 0.05)
Result: Processed signal of size (N,n)

Cite As

Ayad Al-Rumaithi (2023). Filtering, Detrending, and Windowing of a Signal (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

modified code


file and description