开发者

how to obtain histogram data in Matlab

开发者 https://www.devze.com 2023-01-04 21:13 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消