本文介绍了如何在Matlab中获取直方图数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
众所周知,Matlab中的"hist"函数可绘制数组的直方图.我需要知道每个垃圾箱的数值.你能帮我吗?
As we know, 'hist' function in Matlab plots the histogram of an array. I need to know the numerical value of each bin. Could you help me please?
谢谢
推荐答案
为 hist
.
[h,bins]=hist(data)
将为您提供想要的东西.
will get you what you want.
这篇关于如何在Matlab中获取直方图数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!