Giving a bin width to imported data
조회 수: 8 (최근 30일)
이전 댓글 표시
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
채택된 답변
Star Strider
2019년 9월 27일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!