Easy Bandpass Filter

version (2.26 KB) by Wonsang You
Simplified band-pass filtering without external toolboxes.


Updated 14 Jul 2016

View License

It performs band-pass filtering of a time series with the rectangle window in frequency domain, "without external toolboxes". An example code is given as follows to filter a time series in the pass band of 200~300 Hz:
Fs = 1000;
t = linspace(0,1,Fs);
x = cos(2*pi*100*t)+0.5*randn(size(t));
y = bpfilt(x,200,300,1000);

Cite As

Wonsang You (2022). Easy Bandpass Filter (https://www.mathworks.com/matlabcentral/fileexchange/58219-easy-bandpass-filter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
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!