I want to create a curve on the histogram?
18 次查看(过去 30 天)
显示 更早的评论
Hi Guys, first of all I am beginner in Matlab, I did histogram to the data, now I want to create curve on the histogram which I made.
Thank you
Reyadh
1 个评论
Image Analyst
2015-5-26
What do you mean? Do you mean like you have a bar chart of the counts and you'd like to superimpose a smooth line/curve plot (like a Gaussian or something) on top of the bar chart?
采纳的回答
Thorsten
2015-5-26
编辑:Thorsten
2015-5-26
If you want to plot something on top of your histogram, use
hold on
plot(your arguments here)
If you want to plot the histogram as a curve, use
H = hist(whatever);
plot(H)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!