Generate 10,000 random numbers and create a histogram. Thehistogram
function automatically chooses
an appropriate number of bins to cover the range of values inx
and show the shape of the
underlying distribution.
x = randn(10000,1); h = histogram(x)
randn(100001)产生10 000个均值0,标准差
1的正态分布随机数。
原文:https://www.cnblogs.com/yibeimingyue/p/13416042.html