Home > Enterprise >  How can I make gaussian noise with certain mean value in simulink?
How can I make gaussian noise with certain mean value in simulink?

Time:08-07

How can I make gaussian noise with mean= 18 and variance= 0.1 in simulink? I can't use AWGN block since I'm not able to specify mean value in it. I want to generate the below signal which is gaussian noise with mean= 18 and variance= 0.1: enter image description here

CodePudding user response:

The mean just says how much the noise is shifted so if you take a constant function of value 18 and then add a gaussian noise of variance .1 you will get what you want.

CodePudding user response:

This is assuming your noise is one-dimensional:

variance = 0.1;
std_deviation = sqrt(variance);
mean = 18;
n = 1000; % number of samples

noise = std_deviation .* randn(n, 1)   mean;
  • Related