Function to smooth a time series using a Gaussian filter.
Updated 20 Mar 2018

View License

A non-GUI function that will smooth a time series using a simple Gaussian filter.
zfilt = gaussfilt(t,z,sigma);
where t & z define the time series (t independent variable and z is data vector), and sigma defines the standard deviation (width) of the Gaussian filter.

Cite As

James Conder (2024). gaussfilt(t,z,sigma) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Mittag-Leffler filter

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Added a fix to edge effect introduced by convolution (thanks to Aaron Close).

Removed extraneous keyboard command that was accidentally left in on previous update.

Use convolution if time vector is uniformly spaced.