Add white Gaussian noise to input signal
comm.AWGNChannel adds white Gaussian noise to the input signal.
When applicable, if inputs to the object have a variable number of channels, the EbNo, EsNo, SNR, BitsPerSymbol, SignalPower, SamplesPerSymbol, and Variance properties must be scalars.
To add white Gaussian noise to an input signal:
Create the comm.AWGNChannel
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects? (MATLAB).
creates an additive
white Gaussian noise (AWGN) channel System
object™, awgnchan
= comm.AWGNChannelawgnchan
. This object then adds white Gaussian noise to a
real or complex input signal.
creates a AWGN channel object, awgnchan
= comm.AWGNChannel(Name
,Value
)awgnchan
, with the specified property
Name
set to the specified Value
. You can specify
additional name-value pair arguments in any order as
(Name1
,Value1
,...,NameN
,ValueN
).
specifies the variance of the white Gaussian noise. This syntax applies when you set the
NoiseMethod to
outsignal
= awgnchan(insignal
,var
)'Variance'
and VarianceSource to 'Input
port'
.
For example:
awgnchan = comm.AWGNChannel('NoiseMethod','Variance','VarianceSource','Input port'); var = 12; ... outsignal = awgnchan(insignal,var);
To use an object function, specify the
System
object as the first input argument. For
example, to release system resources of a System
object named obj
, use
this syntax:
release(obj)
[1] Proakis, John G. Digital Communications. 4th Ed. McGraw-Hill, 2001.