NaN elements have to be eliminated before calling hist()?

10 views (last 30 days)
The hist(M(:)) function skip NaN elements?

Accepted Answer

Star Strider
Star Strider on 22 Apr 2015
From the documentation for hist (under Input Arguments):
  • ‘If the input array contains NaNs or undefined categorical values, hist does not include these values in the bin counts.’

More Answers (0)

Community Treasure Hunt

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

Start Hunting!