Matrix of normal random numbers.
Syntax: @mnrnd(n1[, n2])
n1: integer
n2: (optional) integer
Return: matrix
Creates a matrix filled with normal
random numbers. The size of the matrix is given by the integers
n1 (number of rows) and
n2 (number of columns).
Examples
matrix m1 = @mnrnd(3,2)
creates a
matrix filled with standard normal random numbers.
If n2 is omitted or set to 1, the function returns a vector as in
vector v1 = @mnrnd(18)
You may obtain a random sym of normal numbers by creating a square source matrix of random normals and assigning it to a sym matrix,
sym s1 = @mnrnd(5, 5)
which creates the sym S1 based on the lower triangle of the source matrix.
Cross-references
See also
@mrnd,
nrnd, and
rnd.