I need to generate a Gaussian Random Signal using the randn function, with mean 0 and variance 1.
help randn I found many ways to use the randn function.
RANDN Normally distributed pseudorandom numbers.
R = RANDN(N) returns an N-by-N matrix containing pseudorandom values drawn
from the standard normal distribution. RANDN(M,N) or RANDN([M,N]) returns
an M-by-N matrix. RANDN(M,N,P,...) or RANDN([M,N,P,...]) returns an
M-by-N-by-P-by-... array. RANDN returns a scalar. RANDN(SIZE(A)) returns
an array the same size as A.
This only says that parameters define if I could say, the matrix, or size, of the signal.
What is the correct way of generating this signal with mean 0 and variance 1?
And What should I change if I would like to change the mean and the variance?