How can I normalize a histogram of normally distributed points? I have tried using histnorm from the file exchange and a few other suggestions in the help forums, but the height of my bins are on the order of 10^4.
I am using normrand to distribute data points, but the height of the histogram (or height of the pdf when I use histfit) always depends upon the number of data points and the number of bins I use.
No products are associated with this question.
You just need to normalize it toward the number of points
x = randn(1024,1) [n,b] = hist(x) bar(b,n/sum(n))