Function Reference: normrnd

statistics: r = normrnd (mu, sigma)
statistics: r = normrnd (mu, sigma, rows)
statistics: r = normrnd (mu, sigma, rows, cols, …)
statistics: r = normrnd (mu, sigma, [sz])

Random arrays from the normal distribution.

r = normrnd (mu, sigma) returns an array of random numbers chosen from the normal distribution with parameters mu and sigma. The size of r is the common size of mu and sigma. A scalar input functions as a constant matrix of the same size as the other inputs. Both parameters must be finite real numbers and sigma > 0, otherwise NaN is returned.

When called with a single size argument, return a square matrix with the dimension specified. When called with more than one scalar argument the first two arguments are taken as the number of rows and columns and any further arguments specify additional matrix dimensions. The size may also be specified with a vector of dimensions sz.

See also: norminv, norminv, normpdf, normfit, normlike, normstat

Source Code: normrnd