How to get histogram data in matlab

As you know, the "hist" function in Matlab displays a histogram of an array. I need to know the numerical value of each bin. could you help me?

thanks

+6
matlab
source share
1 answer

Indicate the output for hist .

 [h,bins]=hist(data) 

will provide you with what you want.

+10
source share

All Articles