Moving Variance, variable window size

1 view (last 30 days)
Is there a way to calculate the moving variance of a data set with a variable window size? I would like my window size to be determined by a specified number of data points within each window, and with this be able to determine when the data converges by finding where my variance is below a certain tolerance.

Accepted Answer

Chad Greene
Chad Greene on 1 Apr 2016
I recommend Aslak Grinsted's moving function, which is computationally-efficient and easy to use.

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!