what is the code for bin histogram of fraction to the bin

조회 수: 3 (최근 30일)
Pooja Jangra
Pooja Jangra 2020년 10월 24일
댓글: Pooja Jangra 2020년 10월 29일

답변 (1개)

Sindar
Sindar 2020년 10월 25일
You can specify the histogram edges like this, with the height of the bars normalized to %:
x = randn(1000,1);
edges = 25:5:50;
h = histogram(x,edges,'Normalization','probability'));

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by