Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Add white Gaussian noise to signal

`out = awgn(in,snr)`

`out = awgn(in,snr,signalpower)`

`out = awgn(in,snr,signalpower,randobject) `

`out = awgn(in,snr,signalpower,seed)`

`out = awgn(___,powertype)`

accepts an input signal power value in dBW. To have the function measure the power of
`out`

= awgn(`in`

,`snr`

,`signalpower`

)`in`

before adding noise, specify `signalpower`

as
`'measured'`

.

accepts input combinations from prior syntaxes and a random number stream object to generate
normal random noise samples. For information about producing repeatable noise samples, see
Tips.`out`

= awgn(`in`

,`snr`

,`signalpower`

,`randobject`

)

specifies the signal and noise power type as `out`

= awgn(___,`powertype`

)`'dB'`

or
`'linear'`

in addition to the input arguments in any of the previous
syntaxes.

For the relationships between SNR and other measures of the relative power of the noise,
such as
*E*_{s}/*N*_{0}, and
*E*_{b}/*N*_{0}, see
AWGN Channel Noise Level.

To generate repeatable white Gaussian noise samples, use one of these tips:

Provide a static

`seed`

value as an input to`wgn`

.Use the

`reset`

function on the`randobject`

before passing it as an input to`awgn`

.Provide

`randobject`

in a known state as an input to`awgn`

. For more information, see`RandStream`

.