Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Communication Systems AWGN Channel

6th Semester Institute of Industrial Electronics Engineering LAB 7

OBJECTIVES:Investigation and analysis of simplest communication AWGN channel and


analyze its spectral characteristics.

BRUSH UP:

Besides thermal, many other types of noise sources are Gaussian and have flat spectral density
over a wide range of frequencies. An AWGN channel adds white Gaussian noise to the signal
with normal pdfexhibiting zero mean and finite variance.They are termed as white noise sources
with the totally uncorrelated samples and the power spectrum P(f) almost independent of
frequency.

Signal-to-noise ratio (SNR) per sample is also an important parameter for an AWGN channel.

STEPS TO BE TAKEN:

1. Analyze the simplest communication channel with an additive Gaussian noise (AWGN) in
Matlab.
2. Generate a triangular signal and add random AWGN in m file.
3. Vary SNR in dB and plot the channel input and output signals in each case.
4. Generate and examine the normal pdf with varying mean and variance.
5. Given a sine wave signal (amplitude and frequency of your choice and 100 samples on x-
axis).
6. Apply auto-correlation of the sine wave signal and plot the output.
7. Generate noise signal of equal number of samples (100). Plot the noise signal.
8. Apply auto-correlation of noisy signal and plot the output. Write your observation regarding
the output.
9. Now, add the sine wave signal (generated previously) to the noisy signal and plot the graph
showing thecorrupt signal.
10. Now, apply auto-correlation of the sine + noise signal and plot the output. What do you
observe? Writeyour conclusion.
11. Submit yours findings and investigations in the form of proper report.
MATLAB SCRIPT
t=0:0.01:20;
x=sawtooth(t);
y=awgn(x,10);
figure(1);
plot(t,x,t,y);
y=awgn(x,50);
figure(2);
plot(t,x,t,y);
y=awgn(x,90);
figure(3);
plot(t,x,t,y);
figure(4)
r=-10:0.1:10
p=normpdf(r,0,4)
plot(r,p)
figure(5)
tofsin=0:0.1:10
c=sin(tofsin);
plot(tofsin,c)
figure(6)
co_of_sin = xcorr(c);
plot(co_of_sin)
figure(7)
noise=randn(1,100);
plot(noise)
figure(8)
co_of_noise=xcorr(noise)
plot(co_of_noise)
figure(9)
s=awgn(c,5)
plot(tofsin,s)
figure(10)
u=xcorr(c,s)
plot(u)
1.
t=0:0.01:20;
x=sawtooth(t);
y=awgn(x,10);
figure(1);
plot(t,x,t,y);

2. y=awgn(x,50);
figure(2);
plot(t,x,t,y);

3. y=awgn(x,90);
figure(3);
plot(t,x,t,y);
4. Figure (4)
r=-10:0.1:10
p=normpdf(r,0,4)
plot(r,p)

5 figure(5)
tofsin=0:0.1:10
c=sin(tofsin);
plot(tofsin,c)

6. figure(6)
co_of_sin = xcorr(c);
plot(co_of_sin)
7. figure(7)
noise=randn(1,100);
plot(noise)

8. figure(8)
co_of_noise=xcorr(noise)
plot(co_of_noise)

9. figure(9)
s=awgn(c,5)
plot(tofsin,s)
10. figure(10)
u=xcorr(c,s)
plot(u)

Conclusion:

You might also like