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);
Wonsang You (2022). Easy Bandpass Filter (https://www.mathworks.com/matlabcentral/fileexchange/58219-easy-bandpass-filter), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!