How do I adjust the binwidth of histfit while keeping a fixed bin number
조회 수: 10 (최근 30일)
이전 댓글 표시
I would like to plot the histfit histogram touching each other while reducing the bin width,
댓글 수: 0
답변 (1개)
fred ssemwogerere
2020년 2월 18일
Hello, assuming you have a random plot for your data as:
bt=betarnd(4,8,100,1);
hnd=histfit(bt,8,'beta');
% The default bar width will be set as "1". change the bar width to have separate bars
hnd(1).BarWidth=0.6;
댓글 수: 2
fred ssemwogerere
2020년 2월 18일
Probably am not getting you well, but by default, "histfit" plots the bars in contact with each other at a bin width of 1.
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!