Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Plotting issue with histogram

1 回表示 (過去 30 日間)
Chathu
Chathu 2015 年 2 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Star Strider
Star Strider 2015 年 2 月 5 日
It works for me. I cannot reproduce the error (in R2014b).

回答 (1 件)

Chathu
Chathu 2015 年 2 月 5 日
@ Star Strider- yes, you're right. Does anyone knows how to draw a 'distribution graph' for the above question?
  1 件のコメント
Image Analyst
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!

Translated by