How can I plot a histogram with a logarithmic X-axis?

59 visualizaciones (últimos 30 días)
I would like to plot a histogram of my data, with the x-axis being logarithmic, such as in semilogx

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de Jun. de 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.

Más respuestas (0)

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2006a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by