Giving a bin width to imported data
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Zoe Holland
il 27 Set 2019
Risposto: Star Strider
il 27 Set 2019
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?
0 Commenti
Risposta accettata
Star Strider
il 27 Set 2019
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!