image thumbnail

cumulative statistic with NaN's

version (1.48 KB) by Mauro
cumstat calculate the mean and std of an array with NaN's from 1 to n


Updated 11 Mar 2010

View License

it's useful to see how the mean and the standard deviation change when you use more samples to calculate it.

The Array can contain NaN's but it's slower than cumstat (File ID: #26899) because it contain a for-loop

Cite As

Mauro (2022). cumulative statistic with NaN's (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: cumulativ statistic

Community Treasure Hunt

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

Start Hunting!