【发布时间】:2012-11-21 06:45:06
【问题描述】:
我的直方图如下所示:
为了获取图像数据,我使用了这个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 指的是什么?
【问题讨论】:
-
假设您知道什么是直方图,因为您正在使用
hist函数。如果是这样,那么h对应于“计数”,即直方图的每个 bin 中的观察数。都在the documentation。 -
@Colin T Bowers。感谢您的回复。但是,在这种情况下,
columns' those that represent the number of observations? What is abin 不是吗?不是x-axis值吗?谢谢 -
@ Nasser M. Abbasi。你的意思是容器
bins?在这种情况下,bin是什么?谢谢 -
hist 将
data的元素分布到以h中的元素为中心的 x 轴上的 10 个 bin 中(Matlabs 默认)。如果指定 bin 边缘而不是中心更自然,请使用histc。 -
@nate。那么,
h是否代表x-axis值?