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
Mauro (2021). cumulative statistic with NaN's (https://www.mathworks.com/matlabcentral/fileexchange/26906-cumulative-statistic-with-nan-s), MATLAB Central File Exchange. Retrieved .
Inspired by: cumulativ statistic
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!