What if I need both the data and the plot of a histogram?
1 view (last 30 days)
Show older comments
I have to run twice?
hist(data,number_of_bins); h1 = hist(data,number_of_bins);
0 Comments
Accepted Answer
Steven Lord
on 27 Sep 2015
Call HISTOGRAM instead of HIST and access the properties of the histogram graphics object it returns.
2 Comments
More Answers (0)
See Also
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!