Normally distributed random numbers
X = randn
returns a random scalar drawn
from the standard normal distribution.
X = randn(
returns
an sz1,...,szN
)sz1
-by-...-by-szN
array of
random numbers where sz1,...,szN
indicate the size
of each dimension. For example, randn(3,4)
returns
a 3-by-4 matrix.
X = randn(___,
returns
an array of random numbers of data type typename
)typename
.
The typename
input can be either 'single'
or 'double'
.
You can use any of the input arguments in the previous syntaxes.
X = randn(___,'like',
returns
an array of random numbers like p
)p
; that is, of
the same object type as p
. You can specify either typename
or 'like'
,
but not both.
Note:
The |