1D Gaussian lowpass filter
Updated 11 Oct 2006
This function returns coefficients of Gaussian lowpass filter.
Advantages of Gaussian filter: no ringing or overshoot in time domain.
Diasadvantage: slow rolloff in frequency domain.
Pass SR=sampling rate, fco=cutoff freq, both in Hz, to the function.
Coefficients for FIR filter of length L (L always odd) are computed.
This symmetric FIR filter of length L=2N+1 has delay N/SR seconds.
Examples of use:
Compute Gaussian filter frequency response when SR=1000,fco=50 Hz:
Filter signal X sampled at 5kHz with Gaussian filter with fco=500:
SR,fco are not sanity-checked. WCR 2006-10-11.
William Rose (2023). 1D Gaussian lowpass filter (https://www.mathworks.com/matlabcentral/fileexchange/12606-1d-gaussian-lowpass-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!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.