Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Plotting issue with histogram

2 vues (au cours des 30 derniers jours)
Chathu
Chathu le 5 Fév 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
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 commentaire
Star Strider
Star Strider le 5 Fév 2015
It works for me. I cannot reproduce the error (in R2014b).

Réponses (1)

Chathu
Chathu le 5 Fév 2015
@ Star Strider- yes, you're right. Does anyone knows how to draw a 'distribution graph' for the above question?
  1 commentaire
Image Analyst
Image Analyst le 5 Fév 2015
What is that? A histogram is already a distribution. And a bar chart is a good way to display it.

Cette question est clôturée.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by