create a histogram from my data
Show older comments
x=[23948 25977 29136 33815 36435 40591 43243 44691 44805 45509 44830 45094 44236 43467 44189 45846 48375 48285 46372 44667 41938];
nbins=12;
h = histogram(x,nbins)
I am given the error message:
Error in histogram (line 4)
h = histogram(x,nbins)
why?
Also my data is years from 1995-2015 against different groups A, B, C, D , E.
The x values above were just values from my first column A against years.
Does anyone have any tips on creating histograms so I can predict a suitable distribution.
Accepted Answer
More Answers (1)
Sean de Wolski
on 15 Dec 2016
which -all histogram
I'd guess you have another histogram command shadowing the MATLAB builtin one. Your command above works fine for me in 16b.
Categories
Find more on Histograms 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!