what is the differences between "sum(x, 3, 'omitnan')" and "nansum(x, 3)" ?
13 views (last 30 days)
Show older comments
Hi
could you please let me know what is the differences between "sum(x, 3, 'omitnan')" and "nansum(x, 3)" ?
0 Comments
Accepted Answer
Walter Roberson
on 28 Oct 2019
nansum() is an older routine that is part of the Statistics Toolbox.
sum() with 'omitnan' is part of a series of general enhancements to handling nan. It requires a newer MATLAB release but no special toolbox.
There might possibly be some differences in details of handling of some datatypes.
0 Comments
See Also
Categories
Find more on Logical 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!