MATLAB - 将拟合分布曲线添加到直方图
我想为我的数据拟合一条分布曲线,并将其绘制在数据直方图的顶部。
我找不到如何做到这一点(我是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是你想要的吗?
分布拟合 (C) Mathworks http://www.mathworks.com/products /demos/shipping/stats/cfitdfitdemo_06.png
如果是这样,请检查 曲线拟合和分布拟合
Is this what you want?
Distribution Fitting (C) Mathworks http://www.mathworks.com/products/demos/shipping/stats/cfitdfitdemo_06.png
If so, check the Mathworks page on Curve Fitting and Distribution Fitting
你想要的是“保持”命令。 它将当前绘图/轴保持在适当的位置,并使您能够将新绘图放在另一个绘图之上。 例如:
看这里
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.:
see here