Info
此问题已关闭。 请重新打开它进行编辑或回答。
Plotting issue with histogram
1 次查看(过去 30 天)
显示 更早的评论
i need to plot a histogram. I have only 2 bin counts,as follows.(Pls see the attached file)
0.0000 - 0.1000
0.1000 - 0.2000
I have two questions:
(1) This is the code i wrote:
A=timeD;
binranges=0.0000:0.1000:0.2000;
[bincount]=histc(A,binranges);
figure;
bar(binranges,bincount,'histc')
Why i am getting an empty figure here?
(2) Using the histogram(in MatLab), can i draw a distribution graph?
1 个评论
回答(1 个)
Chathu
2015-2-5
1 个评论
Image Analyst
2015-2-5
What is that? A histogram is already a distribution. And a bar chart is a good way to display it.
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!