# Formula to calculate/generate gaussian noise?

What is the formula to calculate gaussian noise, given we have variance and mean? I am trying to search google for formula but i am unable to find any much relevant result. If for example i have mean as "11" and variance as "18". Then how i can use these two value for calculating/generating a noise signal from gauss distribution??which formula should i use,where i can put these values of variance and mean,and then i will get noise signal

In MATLAB, you can do it that way:

>> nsamples = 1e9;
mu = 11;
sigma_squared = 18;
x = mu + sqrt(sigma_squared)*randn(nsamples,1);
mean(x)
ans =

10.9998
var(x)
ans =

17.9994

• very nice. But from where did you got this formula?Link? x = mu + sqrt(sigma_squared)*randn(nsamples,1); – engr Mar 3 at 16:50
• @engr Did you try clicking on and then reading the link? – Engineer Mar 3 at 17:47

tx = Transmission vector

noise=sqrt(sigma2/2)*randn(size(tx));

• sigma2? what is it? – engr Feb 2 at 16:04
• variance of complex noise. – jomegaA Feb 2 at 17:28
• can you please share link/refrence of this formula?? – engr Feb 9 at 5:51
• no mention/use of mean in this formula? will the factor of mean will be redundant while calculating noise in this case? – engr Feb 9 at 5:52
• What is transmission vector?how we can get/find its value? – engr Feb 9 at 5:53