Why my R2013b version does not have "nansum","nanmin" or "nanmax"?

8 views (last 30 days)
Hi everyone,
I don't have any toolbox, but I thought these functions are built-in for 2013b, no?
Thanks, Karen

Accepted Answer

per isakson
per isakson on 21 Feb 2014
Edited: per isakson on 22 Feb 2014
These functions comes with the statistical and the financial toolboxes.
See
  2 Comments
David Young
David Young on 22 Feb 2014
nanmin and nanmax in the statistics toolbox are the same as ordinary min and max, I believe
per isakson
per isakson on 22 Feb 2014
Edited: per isakson on 22 Feb 2014
Yes, min and max are. Exerpt from min.m of R2013a
NaN's are ignored when computing the minimum. When all elements in X
are NaN's, then the first one is returned as the minimum.
In the "Tips" section of the documentation of min, I finally found
The min function ignores NaNs.
Has it always been that way? In R2013a, nanmin is a simple wrapper of min.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!