如何在matlab中将 bin 中心转换为 bin 边
1、例如,指定 bin 中心以用于 hist。这些 bin 具有均匀的宽度。命令行键入:A = [-9 -6 -5 -2 0 1 3 3 4 7];

3、命令行键入:hist(A,centers)

5、命令行键入:edges = [centers(1)-d(1), centers(1:end-1)+d, centers(end)+d(end)];

7、现在,将 histogram 与 bin 边界结合使用。命令行键入:histogram(A,edges)
