randn(N,1)就是产生服从方差为1,均值为0 ( 即N(0,1) )的Gaussian分布的随机噪音
官方文档给出的例子:产生均值为1,标准差为2的正态分布。
Example 1: Generate values from a normal distribution with mean 1 and standard deviation 2.
r = 1 + 2*randn(100,1);
比如,建立均值为0.6,方差为0.1,即标准差为sqrt(0.1)的4阶正态分布随机矩阵。
y=0.6+sqrt(0.1)*randn(4)