How can I plot a histogram with a logarithmic X-axis?
112 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to plot a histogram of my data, with the x-axis being logarithmic, such as in semilogx
Akzeptierte Antwort
MathWorks Support Team
am 27 Jun. 2009
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!