Normalizing histogram counts to 1

Hi,
I am trying to normalize the histogram counts in the from of 0 to 1 using the below script. However, I am not getting my counts in the range of 0 to 1.
PS - I have also attached my data here..
histogram(Output, 'Normalization', 'pdf');

Respuestas (1)

David Hill
David Hill el 17 de Mzo. de 2022
Don't you want probability.
histogram(Output, 'Normalization', 'probability');

3 comentarios

Turbulence Analysis
Turbulence Analysis el 17 de Mzo. de 2022
Hi,
Thanks !! Yes, with probbaility, I am able to get counts nomalized from 0 to 1..
May I know the difference between 'pdf' and 'probbaility' functions in the matlab
help histogram
Turbulence Analysis
Turbulence Analysis el 17 de Mzo. de 2022
Okay , got it.. Thanks..

Iniciar sesión para comentar.

Categorías

Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.

Preguntada:

el 17 de Mzo. de 2022

Comentada:

el 17 de Mzo. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by