/usr/share/freemat/help/text/randn.mdc is in freemat-help 4.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | RANDN RANDN Gaussian (Normal) Random Number Generator
Usage
Creates an array of pseudo-random numbers of the specified size.
The numbers are normally distributed with zero mean and a unit
standard deviation (i.e., mu = 0, sigma = 1).
Two seperate syntaxes are possible. The first syntax specifies the array
dimensions as a sequence of scalar dimensions:
y = randn(d1,d2,...,dn).
The resulting array has the given dimensions, and is filled with
random numbers. The type of y is double, a 64-bit floating
point array. To get arrays of other types, use the typecast
functions.
The second syntax specifies the array dimensions as a vector,
where each element in the vector specifies a dimension length:
y = randn([d1,d2,...,dn]).
This syntax is more convenient for calling randn using a
variable for the argument.
Finally, randn supports two additional forms that allow
you to manipulate the state of the random number generator.
The first retrieves the state
y = randn('state')
which is a 625 length integer vector. The second form sets
the state
randn('state',y)
or alternately, you can reset the random number generator with
randn('state',0)
|