What if I need both the data and the plot of a histogram?

1 view (last 30 days)
I have to run twice?
hist(data,number_of_bins); h1 = hist(data,number_of_bins);

Accepted Answer

Steven Lord
Steven Lord on 27 Sep 2015
Call HISTOGRAM instead of HIST and access the properties of the histogram graphics object it returns.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!