简体   繁体   English

如何在Matlab中获取直方图数据

[英]how to obtain histogram data in Matlab

As we know, 'hist' function in Matlab plots the histogram of an array. 我们知道,Matlab中的'hist'函数绘制了一个数组的直方图。 I need to know the numerical value of each bin. 我需要知道每个箱子的数值。 Could you help me please? 请问你能帮帮我吗?

thanks 谢谢

Specify an output for hist . 指定hist的输出。

[h,bins]=hist(data)

will get you what you want. 会得到你想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM