How to add white gaussian noise with specific variance using awgn?

조회 수: 107 (최근 30일)
I want to add white gaussian noise with a specific variance. How can I accomplish this by using either wgn or awgn functions?
Can I do something like that,
out = awgn(in, var=1);

채택된 답변

Prachi Kulkarni
Prachi Kulkarni 2021년 9월 24일
Hi,
In the wgn function, if you set the power type to linear i.e. watts, the power of the noise signal is the variance itself.
So, you can generate Gaussian noise of variance noiseVar for a signal of dimensions m x n as follows.
wgn(m,n,noiseVar,'linear')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Propagation and Channel Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by