This function performs statistical operations such as mean, median, std, etc., locally, in a fashion similar to a moving window. This function differs from most moving-window filters and frequency-based lowpass filtering in that data do not need to be equally spaced, nor must x values be monotonically increasing. Just enter scattered data and get local statistics within a given radius of each datapoint.
Chad Greene (2021). scatstat1 local statistics of scattered 1d data (https://www.mathworks.com/matlabcentral/fileexchange/57945-scatstat1-local-statistics-of-scattered-1d-data), MATLAB Central File Exchange. Retrieved .
Inspired by: Moving averages / Moving median etc, Moving Average Function
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.