Matlab - [h,bins] = hist(数据)

时间:2012-11-21 06:45:06

标签: matlab histogram

我的直方图如下所示:enter image description here

为了获取图像数据,我使用了这个matlab命令:[h,bins]=hist(data)

我得到的输出如下:

h =

   221    20     6     4     1     1     2     0     0     1


bins =

  Columns 1 through 7

    8.2500   24.7500   41.2500   57.7500   74.2500   90.7500  107.2500

  Columns 8 through 10

  123.7500  140.2500  156.7500

h指的是什么?

1 个答案:

答案 0 :(得分:2)

h是直方图中各个bin中的数据元素数。