这是如何在matlab中创建直方图图的示例®。
读取Matlab文档中的“直方图”功能。此功能可在R2014B或更新中提供。
有关详细信息,请转到Matlab Plot Gallery -//www.tatmou.com/discovery/gallery.html.
Mathworks Plot Gallery团队(2021)。Matlab Plot Gallery - 直方图情节(//www.tatmou.com/matlabcentral/fileexchange/35275-matlab-plot-gallery-histographot),matlab中央文件exchange。检索到。
嗨,是通过命令“直方图”堆叠直方图的任何方法,过去我这样做了:
酒吧([案例1;案例2;案例3],'堆积')
R2014B中的新直方图函数似乎是体面的,但如果您使用的是先前版本的MATLAB,并且希望更直观地格式化直方图,请考虑此处描述的HISTF://www.tatmou.com/matlabcentral/fileexchange/47552-histf/content//histf_documentation/html/histf_documentation.html.