how to obtain histogram data in Matlab
As we know, 'hist' function in Matlab plots the histogram of an array. I need to开发者_如何学C know the numerical value of each bin. Could you help me please?
thanks
Specify an output for hist
.
[h,bins]=hist(data)
will get you what you want.
精彩评论