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

 Accepted Answer

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)

Asked:

on 22 Apr 2015

Answered:

on 22 Apr 2015

Community Treasure Hunt

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

Start Hunting!