[Master Index] [Index for /tools/hpmatlab/toolbox/matlab/elmat]

randn

(/tools/hpmatlab/toolbox/matlab/elmat/randn.m)


Help text

RANDN	Normally distributed random numbers and matrices.
	RANDN(N) is an N-by-N matrix with random entries, chosen
	from a normal distribution with mean 0.0 and variance 1.0.
	RANDN(M,N) or RANDN([M,N]) is an M-by-N matrix with random entries.
	RANDN(SIZE(A)) is the same size as A.
	RANDN with no arguments is a scalar whose value changes each time
	it is referenced.

	RANDN('seed') returns the current seed of the normal generator.
	RANDN('seed',s) sets the normal generator seed to s.
	RANDN('seed',0) resets the seed its startup value.
	RANDN('seed',sum(100*clock)) sets it to a different value each time.

	RANDN and RAND have separate generators, each with its own seed.

	See also RAND, SPRANDN.

Cross-Reference Information

This is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON