MATLAB: I want to create 1000 random variabels from 0 to 1 and find the probability of the numbers

frequancy probabiluty

I want to creat 1000 random variabels from 0 to 1 and find the probability of the numbers between 0 to 0.05 and 0.05 to 0.1 like that every step is 0.05 untel 1 and draw it as bars (i want to find how many numbers the random proses creat every 0.05)
X=rand(1,1000)
Step=0:0.05:1
Y=(x-0.05)/100
Histo(x,y)

Best Answer

The HISTCOUNTS command is what you're looking for.
Related Question