matlab画频率分布直方图

时间:2020-08-01 21:59:06   收藏:0   阅读:456
Generate 10,000 random numbers and create a histogram. The histogramfunction automatically chooses 
an appropriate number of bins to cover the range of values in x 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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!