Y-values for the histogram

10 views (last 30 days)
Raj Arora
Raj Arora on 7 Sep 2022
Edited: Torsten on 7 Sep 2022
Can anyone tell me how can I extract the y-values of the below histogram so that I can plot in any software
randlp2 = exp( gamrnd(26.803,1/8.8801,50000,1)+1.6729 )
x = histogram(randlp2,'normalization','pdf');

Accepted Answer

Bjorn Gustavsson
Bjorn Gustavsson on 7 Sep 2022
Perhaps you look for histcounts? Seems like that is the function that returns what is plotted in histogram.
Raj Arora
Raj Arora on 7 Sep 2022
Thanks Bjorn, I was trying the same earlier, when I was clicking on x some property inspector was opening now I just mentioned x.Values.

Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!