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

6 visualizaciones (últimos 30 días)
Pooja Jangra
Pooja Jangra el 24 de Oct. de 2020
Comentada: Pooja Jangra el 29 de Oct. de 2020

Respuestas (1)

Sindar
Sindar el 25 de Oct. de 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'));

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by