Borrar filtros
Borrar filtros

Hist vs Histogram (Different output even if same bins and same dataset)

6 visualizaciones (últimos 30 días)
Lance
Lance el 15 de Feb. de 2023
Editada: Mili Goyal el 21 de Feb. de 2023
Why does hist and histogram output different graphs even if they have the same bins and the same dataset?
Which is considered more accurate?

Respuestas (1)

Mili Goyal
Mili Goyal el 21 de Feb. de 2023
Editada: Mili Goyal el 21 de Feb. de 2023
The "hist" function operates with bin centers while "histogram" operates with bin edges. The details of the differences between the two can be found in the following documentation:
The "histogram" function includes various improvements over "hist" and is the new recommended function.
Hope this helps!

Categorías

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

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by