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');

답변 (1개)

David Hill
David Hill 2022년 3월 17일

0 개 추천

Don't you want probability.
histogram(Output, 'Normalization', 'probability');

댓글 수: 3

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
Okay , got it.. Thanks..

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

질문:

2022년 3월 17일

댓글:

2022년 3월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by