Create space between binEdges Historgram
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I'am tryning to creat space between binedges in the histogram below
I wanted to choose the interval and the step of the x-axis knowing that I wanted to present the cumulative values for each value of X
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1300040/image.png)
I want to get a histogram like the one below to see esaslyh my data and x values
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1300045/image.png)
thanks for your help
0 commentaires
Réponses (1)
KALYAN ACHARJYA
le 19 Fév 2023
Try
data=randi([1,10],[100,100]);
hist_counts = histcounts(data);
%............^ change the value as per required result
bar(hist_counts, 0.5);
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!