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

6 次查看(过去 30 天)

回答(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