MATLAB - 将拟合分布曲线添加到直方图

发布于 2024-07-26 01:48:21 字数 76 浏览 4 评论 0原文

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

我找不到如何做到这一点(我是 MATLAB 初学者)。

I'd like to fit a distribution curve to my data, and plot it on top of a histogram of the data.

I can't find how to do it (I'm a MATLAB beginner).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我不会写诗 2024-08-02 01:48:21

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

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

看这里

What you want is the "hold" command. It keeps the current plot/axes in place and enables you to put a new plot on top of another one. E.g.:

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

see here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文