complex Gaussian noise signals with zero mean and different variance?

조회 수: 15 (최근 30일)
zayed
zayed 2012년 1월 2일
댓글: Srikanth V 2019년 1월 30일
Hi;
I need to generate in matlab complex Gaussian noise signals with zero mean and different typical values of variance .

채택된 답변

Andrew Newell
Andrew Newell 2012년 1월 2일
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
Sarah Crimi
Sarah Crimi 2019년 1월 11일
편집: Sarah Crimi 2019년 1월 11일
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
Srikanth V 2019년 1월 30일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Probability Density Functions에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by