awgn

Simulation of channel with Additive White Gaussian Noise (AWGN)

Calling sequence

y = awgn(x,sigma)      // Real noise if x is real, complex otherwise
y = awgn(x,sigma,'r')  // Real noise
y = awgn(x,sigma,'c')  // Complex noise

Parameters

x:

input signal

sigma:

square root of noise power

Description

Compute , with . If x is a complex signal, or if complex noise is specifically specified, then noise (with same energy) is also added on the imaginary axis. So be carefull, with complex noise, the noise power is two times more than for real noise.

Examples

x = nrz(ts01(10),4);
y = awgn(x,0.1);
plot(x,'b'); plot(y,'g');