Borrar filtros
Borrar filtros

Plot histogram values and ranges

10 visualizaciones (últimos 30 días)
Santos García Rosado
Santos García Rosado el 15 de Mzo. de 2021
Comentada: Star Strider el 16 de Mzo. de 2021
Hello Mathwork's community.
I'm trying to plot an histogram of a vector and I'm getting the following figure:
It's been coded so that there are 30 bins. The thing is that I would like the first been to only represent the 0 values and afterwards keep representing those bin edges, but as you can see on the picture, the first bin goes from 0 to 10.4. I've been doing some research but still can't figure it out.
I'd really appreciate if someone could give me a hand.
Thank you,
Santos

Respuestas (1)

Star Strider
Star Strider el 15 de Mzo. de 2021
The histogram function allows you to specify whatever bin edges you want. See Specify Bin Edges of Histogram for details.
  4 comentarios
Santos García Rosado
Santos García Rosado el 16 de Mzo. de 2021
I finally ended up finding a solution. I used de yyaxis left and yyaxis right to do the trick. Thank's anyway
Star Strider
Star Strider el 16 de Mzo. de 2021
That is not a solution I would suggest for a histogram plot.

Iniciar sesión para comentar.

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by