Filtering, Detrending, and Windowing of a Signal

Zero-phase bandpass digital filter with detrending and windowing
65 Downloads
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)
Input:
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)
Output:
Result: Processed signal of size (N,n)

Cite As

Ayad Al-Rumaithi (2024). Filtering, Detrending, and Windowing of a Signal (https://www.mathworks.com/matlabcentral/fileexchange/71965-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
1.0.2

modified code

1.0.1

file and description

1.0.0