这是一个如何在MATLAB中创建直方图的例子®.
在MATLAB文档中阅读“直方图”函数。该函数在R2014b或更新版本中可用。
更多的例子,去MATLAB Plot Gallery -//www.tianjin-qmedu.com/discovery/gallery.html
MathWorks地块画廊团队(2021年)。MATLAB Plot Gallery - Histogram Plot(//www.tianjin-qmedu.com/matlabcentral/fileexchange/35275-matlab-plot-gallery-histogram-plot), MATLAB中央文件交换。检索.
嗨,是通过命令“histogram”堆叠直方图的任何方法,在过去,我是这样做的:
酒吧([case1;病例2;case3],“堆叠”)
R2014b中的新直方图函数似乎不错,但如果你使用以前版本的Matlab,你想要一个更直观的方式来格式化直方图,考虑这里描述的histf://www.tianjin-qmedu.com/matlabcentral/fileexchange/47552-histf/content//histf_documentation/html/histf_documentation.html