【问题标题】:MATLAB - add a fitted distribution curve to a histogramMATLAB - 将拟合分布曲线添加到直方图
【发布时间】:2009-06-28 13:19:03
【问题描述】:

我想为我的数据拟合一条分布曲线,并将其绘制在数据的直方图之上。

我不知道怎么做(我是 MATLAB 初学者)。

【问题讨论】:

    标签: matlab plot histogram


    【解决方案1】:

    【讨论】:

    • 非常感谢,我终于得到了我的图表!
    【解决方案2】:

    您想要的是“保持”命令。它使当前的绘图/轴保持在适当的位置,并使您能够将新绘图放在另一个绘图之上。例如:

    hist(somedata);
    hold;
    plot(someotherdata);
    

    see here

    【讨论】: