📅  最后修改于: 2021-01-07 02:41:25             🧑  作者: Mango
直方图是表示数据集中值分布的曲线图。为了生成直方图,将数据集中的值范围划分为均匀分布的bin,并确定落入每个bin中的数据值的数量。
n=hist(y) // It bins the elements in vector y into ten equally spaced containers and returns the number of items in each container as a row vector.
Histogram of 50 randomly distributed numbers between 0 and 1.
y=randn (50, 1);
hist (y)
输出: