Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Pooja Jangra
Pooja Jangra am 24 Okt. 2020
Kommentiert: Pooja Jangra am 29 Okt. 2020

Antworten (1)

Sindar am 25 Okt. 2020
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'));

Community Treasure Hunt

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

Start Hunting!

Translated by