How do I adjust the binwidth of histfit while keeping a fixed bin number
    11 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
I would like to plot the histfit histogram touching each other while reducing the bin width,
0 commentaires
Réponses (1)
  fred  ssemwogerere
      
 le 18 Fév 2020
        Hello, assuming you have a random plot for your data as:
bt=betarnd(4,8,100,1);
hnd=histfit(bt,8,'beta');
% The default bar width will be set as "1". change the bar width to have separate bars
hnd(1).BarWidth=0.6;
2 commentaires
  fred  ssemwogerere
      
 le 18 Fév 2020
				Probably am not getting you well, but by default, "histfit" plots the bars in contact with each other at a bin width of 1.
Voir également
Catégories
				En savoir plus sur Histograms dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!