y=randn(500,1); subplot(1,2,1); hist(y);title('高斯分布直方图'); x=-4:0.1:4; subplot(1,2,2) hist(y,x);title('指定范围的高斯分布直方图');