Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to draw an histogram?

36 visualizaciones (últimos 30 días)
Prince
Prince el 4 de Abr. de 2024 a las 0:09
Cerrada: DGM el 4 de Abr. de 2024 a las 3:13
How do I draw an histogram knowing the frequency of all the individual elements in a 150x150 matrix appears using matlab?
  3 comentarios
Prince
Prince el 4 de Abr. de 2024 a las 0:58
Alright
DGM
DGM el 4 de Abr. de 2024 a las 3:13
Given that my answer has already been provided, I see no reason to keep it or to keep this thread. Other mods are welcome to tidy up the others, but I'm just going to close this one.

Respuestas (1)

DGM
DGM el 4 de Abr. de 2024 a las 0:13
Editada: DGM el 4 de Abr. de 2024 a las 0:15
See histogram() and histcounts()
A = randn(150,150); % normally distributed random numbers
histogram(A) % looks like a gaussian to me
There are many different options, but I'm just using defaults here. If you have specific bin edges or a preferred method of calculating bin locations, see the documentation for details on how to set that up.
  1 comentario
Prince
Prince el 4 de Abr. de 2024 a las 0:43
Can you help me more details. I am still stucked.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by