Add white Gaussian noise to signal
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 Es/N0, and Eb/N0, 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
awgn
.
Use the reset (RandStream)
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
.