[probability help]probability of a certain number and a range of certain numbers

Respuestas (1)

In this distribution, it looks like about 21% of the values are in the range of 6 to 8, inclusive:
M = randi([5,18],1000);
100*sum(M(:)>=6&M(:)<=8)/numel(M)

Categorías

Preguntada:

el 28 de Oct. de 2014

Respondida:

el 28 de Oct. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by