フィルターのクリア

how to plot normalised histogram with specific number of bins?

1 回表示 (過去 30 日間)
Khoder Makkawi
Khoder Makkawi 2019 年 5 月 31 日
回答済み: Star Strider 2019 年 5 月 31 日
I have a vector of 1000 variables and I want to plot the normalised histogram with specific number of bins.
for a the normalisation I know that I should use this code: histogram(class_1,'Normalization','probability');
and for the specific number of bins(500 for example) I should use this code: histogram(class_1,500);
but how I use them together?

採用された回答

Star Strider
Star Strider 2019 年 5 月 31 日
Try this:
figure
histogram(class_1, 500, 'Normalization','probability')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by