>> rand( rows, cols ); % Unif[0,1] >> randn( rows, cols); % Norm(0, 1) 若想生成服从N(a,b)的数据可利用命令: >> sqrt(b)*randn(m,n)+a;