필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Plotting issue with histogram

조회 수: 2 (최근 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