how to organize my histogram please
1 回表示 (過去 30 日間)
古いコメントを表示
Dear All, I have a column matrix Called (Load), it represents the Loads of Vehicles, the dimension for this matrix is 1000 by 1, I was ytrying to draw the histogram for this matrix using the following code, it means I need 39 Load Bins in the histogram, my question is: how can I tell MATLAB to draw this histogram with 39 bins but starting from 3000 ending with 41000? I need to define the boundaries and number of bins together. my code is:
histObject=histogram(Load,39,'Normalization','probability');
Please help
0 件のコメント
採用された回答
Star Strider
2018 年 4 月 24 日
Try this:
edges = linspace(3000, 41000, 40); % Define 39 Bins With 40 Edges
histObject = histogram(Load, edges, 'Normalization','probability');
9 件のコメント
Star Strider
2018 年 4 月 24 日
編集済み: Star Strider
2018 年 4 月 24 日
As always, my pleasure.
I am using R2018a if that is important.
I would suggest that you see if the histfit function will do what you want. (I have not used it here.)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!