How can I define bin edges for histogram?

32 ビュー (過去 30 日間)
Muhammed Ali Fettahoglu
Muhammed Ali Fettahoglu 2022 年 1 月 11 日
回答済み: Walter Roberson 2022 年 1 月 11 日
For example I have values between 40 to 80, but none of them is 40 or 80. But I want to make a histogram between 40 to 80 with 8 bins. How can I do that?
Thanks in advance.

採用された回答

Walter Roberson
Walter Roberson 2022 年 1 月 11 日
edges = linspace(40, 80, 8+1)
edges = 1×9
40 45 50 55 60 65 70 75 80

その他の回答 (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