Matlab histogram

BinEdges数量是NumBins+1:

Matlab histogram_第1张图片

Code:

 x = [1,2,3,4,5,6,7,8,9,10]

不断更换nbins, like 10,5,4.

再运行,

h = histogram(x,nbins)

看打印。

参考:

https://zhuanlan.zhihu.com/p/345333630

 

你可能感兴趣的:(MATLAB,matlab)