如何在Matlab中获取直方图数据 [英] how to obtain histogram data in Matlab

查看:1089
本文介绍了如何在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中获取直方图数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆