1. 程式人生 > >Matlab中產生正態分佈隨機數的函式normrnd-----用來產生高斯隨機矩陣

Matlab中產生正態分佈隨機數的函式normrnd-----用來產生高斯隨機矩陣

  
>> help normrnd
NORMRND Random arrays from the normal distribution.
R = NORMRND(MU,SIGMA) returns an array of random numbers chosen from a
normal distribution with mean MU and standard deviation SIGMA.  The size
of R is the common size of MU and SIGMA if both are arrays.  If either
parameter is a scalar, the size of R is the size of the other
parameter.

R = NORMRND(MU,SIGMA,M,N,...) or R = NORMRND(MU,SIGMA,[M,N,...])