Adding white gaussian Noise to 1D signals

조회 수: 3(최근 30일)
Jessica
Jessica 2015년 2월 14일
댓글: Youssef Khmou 2015년 2월 14일
How can I add the same white guassian noise to different signals using awgn ? in fact I need to variate the SNR and compare the results

채택된 답변

Youssef  Khmou
Youssef Khmou 2015년 2월 14일
편집: Youssef Khmou 2015년 2월 14일
To produce a unique sequence of white Gaussian noise, you need to reset the sate as follows :
x=sin(2*pi*0.2*(0:0.1:10));
y=awgn(x,10,'measured',10);
y2=awgn(x,10,'measured',10);
the state is set to 10, therefore the signals y and y2 are identical.
Note : the option 'measured' in function's argument means that the function measures the power of input signal before adding the perturbation.
  댓글 수: 2
Youssef  Khmou
Youssef Khmou 2015년 2월 14일
You are welcome.

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

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by