How can I plot a histogram with a logarithmic X-axis?
조회 수: 73 (최근 30일)
이전 댓글 표시
I would like to plot a histogram of my data, with the x-axis being logarithmic, such as in semilogx
채택된 답변
MathWorks Support Team
2009년 6월 27일
The ability to directly plot a histogram with a logarithmic x-axis is not available in MATLAB.
To work around this issue, use the HIST function to plot the histogram, and them use
set(gca,'xscale','log')
to set the x-axis scale to logarithmic.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!