如何在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)

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:54
阅读量:85
阅读量:27
阅读量:83
阅读量:30