randn: Function written to match MATLAB's randn function

Description Usage Arguments Value See Also Examples

View source: R/randn.R

Description

Generate random samples from a standardized normal distribution and return in matrix form.

Usage

1
randn(dim1, dim2 = NULL)

Arguments

dim1

The dimension of the matrix (if square), otherwise the number of rows.

dim2

The number of columns, if different from the number of rows.

Value

Matrix of random generated samples.

See Also

Other MATLAB: cell(), diag_matlab(), feval(), fileparts(), isempty(), ones(), rand(), size(), tic(), toc(), zeros()

Examples

1
2
3
randn(2,3)

randn(5)

PopED documentation built on May 21, 2021, 5:08 p.m.