cumulative statistic with NaN's
Version 1.0.0.0 (1.48 KB) by
Mauro
cumstat calculate the mean and std of an array with NaN's from 1 to n
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 (2025). cumulative statistic with NaN's (https://www.mathworks.com/matlabcentral/fileexchange/26906-cumulative-statistic-with-nan-s), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Numeric Types > NaNs >
Find more on NaNs in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: cumulativ statistic
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |