I have imported monthly US unemployment rate data on matlab and wish to make an histogram with a bin width of 0.3, how would I go about doing that?

 採用された回答

Star Strider
Star Strider 2019 年 9 月 27 日

0 投票

It depends on what you want, and what function you are using. For the histcounts function and its friends, defining the edges as:
edgs = 0:0.3:1.2;
creates four bins with their edges separated by 0.3 units:
edgs =
0 0.3 0.6 0.9 1.2
Experiment to get the result you want.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Acoustics, Noise and Vibration についてさらに検索

タグ

質問済み:

2019 年 9 月 27 日

回答済み:

2019 年 9 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by