Filtering, Detrending, and Windowing of a Signal
Version 1.0.3 (1.46 KB) by
Ayad Al-Rumaithi
Zero-phase bandpass digital filter with detrending and windowing
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 LinuxCategories
Find more on Digital Filtering in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.