complex Gaussian noise signals with zero mean and different variance?
42 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
zayed
el 2 de En. de 2012
Comentada: Srikanth V
el 30 de En. de 2019
Hi;
I need to generate in matlab complex Gaussian noise signals with zero mean and different typical values of variance .
0 comentarios
Respuesta aceptada
Andrew Newell
el 2 de En. de 2012
Assuming your signals are not correlated, you could do it with
cgnoise = std1*randn(n,1) + i*std2*randn(n,1);
where std1 and std2 are the standard deviations.
(Edited to correct errors)
5 comentarios
Sarah Crimi
el 11 de En. de 2019
Editada: Sarah Crimi
el 11 de En. de 2019
I am not sure about the std1 vs std2 but, it should be cgnoise(ii) in the loop so that it obtains a value for each ii.
for ii=1:n
cgnoise(ii) = std1*randn + i*std2*rand;
end
Srikanth V
el 30 de En. de 2019
Does not make sense to have diff std_dev for real and imag..if you want snr controlled noise.,
var = (N different var);
for lp_var=1 : size(var,2)
noise_lvl(lp_var) = sqrt(lp_var)*complex(rand(1,sig_len),rand(1,sig_len));
end
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!