Professional Documents
Culture Documents
Communication 01fe17bec234
Communication 01fe17bec234
Communication and
Signal Processing 5th
Laboratory Journal Semester
Course Code: 17EECP301
2018-19
Experiment No: 1
Title: SAMPLING
1.2 List of Equipment/ Components required to conduct the experiment with their
specifications:
Table 1.1: List of all components and equipment used to conduct the experiment.
Sl.No Equipment/ Specification Quantity Cost per item
Components in Rs.
1 Matlab software - - -
2 P.C
2.2 List of Equipment/ Components required to conduct the experiment with their
specifications:
Table 1.1: List of all components and equipment used to conduct the experiment.
Sl.No Equipment/ Specification Quantity Cost per item
Components in Rs.
1 Matlab software - - -
2 P.C
2.5 Code:
3 clc;
4 close all;
5 clear all;
6 m=1;
7 %for message signal
8 Am=5;
9 fm=2e3;
10 Tm=1/fm;
11 t=0:Tm/1000:10*Tm;
12 ym=Am*cos(2*pi*fm*t);
13 subplot(4,1,1);
14 plot(t,ym)
15 title ( ' Modulating Signal ');
16 xlabel ( ' time(sec) ');
17 ylabel (' Amplitud(volt) ');
18 % carrier frequency
19 Ac=Am/m;
20 fc=fm*10;
21 Tc=1/fc;
22 yc=Ac*cos(2*pi*fc*t);
23 subplot(4,1,2);
24 plot(t,yc), grid on;
25 title ( ' Carrier Signal ');
26 xlabel ( ' time(sec) ');
27 ylabel (' Amplitud(volt) ');
28 %for amplitude modulated signal
29 y=Ac*(1+m*cos(2*pi*fm*t)).*cos(2*pi*fc*t);
30 subplot(4,1,3);
31 plot(t,y);
32 % for upper envelope
33 hold on
34 plot(t,Ac*(1+ym/Ac),'r');
35 % for lower envelope
36 hold on
37 plot(t,-Ac*(1+ym/Ac),'g');
38 axis;
39 title ( ' Amplitude Modulated signal ');
40 xlabel ( ' time(sec) ');
41 ylabel (' Amplitud(volt) ');
42 grid on;
laboratory
43 manual
% for AM Course code:
demodulation
44 z=(Ac*Ac*m).*ym;
45 subplot(4,1,4);
46 plot (t,z);
47 title('AM Demodulation');
48 xlabel ('time(sec)');
49 ylabel (' Amplitud(volt) ');
laboratory manual
2.8 Conclusion of theCourse code:
experiment:
We can conclude that there is no distortion or phase reversal when the modulation index is
in-between 0 -1.Hence we can demodulate the signal without losing any information of the
signal. But we might lose some information while demodulating when modulation index is
greater than 1 due to over modulation.
3.2 List of Equipment/ Components required to conduct the experiment with their
specifications:
Table 1.1: List of all components and equipment used to conduct the experiment.
Sl.No Equipment/ Specification Quantity Cost per item
Components in Rs.
1 Matlab software - - -
2 P.C
DSB-SC is basically an amplitude modulation wave without the carrier, therefore reducing
power waste, giving it a 50% efficiency.Double-sideband suppressed-carrier transmission is
transmission in which frequencies produced by amplitude modulation are symmetrically
spaced above and below the carrier frequency and the carrier level is reduced to the lowest
practical level, ideally being completely suppressed. In the DSB-SC modulation, unlike in
AM, the wave carrier is not transmitted; thus, much of the power is distributed between the
side bands, which imply an increase of the cover in DSB-SC.
laboratory manual
3.5 Code: Course code:
4 clc;
5 close all;
6 clear all;
7 m=1;
8 Am=5;
9 fm=2e3;
10 Tm=1/fm;
11 t=0:Tm/1000:6*Tm;
12 ym=Am*cos(2*pi*fm*t);
13 subplot(4,1,1);
14 plot(t,ym)
15 title ( ' Modulating Signal ');
16 xlabel ( ' time(sec) ');
17 ylabel (' Amplitud(volt) ');
18 % carrier frequency
19 Ac=Am/m;
20 fc=fm*10;
21 Tc=1/fc;
22 yc=Ac*cos(2*pi*fc*t);
23 subplot(4,1,2);
24 plot(t,yc), grid on;
25 title ( ' Carrier Signal');
26 xlabel ( ' time(sec) ');
27 ylabel (' Amplitud(volt)');
28 % for DSBSC Modulation
29 y=ym.*yc;
30 subplot(4,1,3);
31 plot(t,y);
32 hold on
33 plot(t,Ac*(ym),'r');
34 hold on;
35 plot (t,-Ac*(ym),'g');
36 axis;
37 title ( 'DSBSC Modulated wave ');
38 xlabel ( ' time(sec) ');
39 ylabel (' Amplitud(volt) ');
40 grid on;
41 % For DSBSC Demodulation
42 z=y.*yc;
laboratory
43 manual
subplot(4,1,4); Course code:
44 plot(t,z);
45 title ( 'DSBSC Demodulated wave ');
46 xlabel ( ' time(sec) ');
47 ylabel (' Amplitud(volt) ');
Experiment No: 4
4.1 Aim of the experiment: write an matlab program that can perform linear and
circular convolution
4.2 List of Equipment/ Components required to conduct the experiment with their
specifications:
Table 1.1: List of all components and equipment used to conduct the experiment.
Sl.No Equipment/ Specification Quantity Cost per item
Components in Rs.
1 Matlab software - - -
2 P.C - 1 -
Linear convolution:
The response y[n] of LTI system for any arbitrary input x[n] is given by convolution of
impulse response h[n] of the system and the arbitrary input x[n].
y[n]=x[n]*h[n]
Circular convolution:
The convolution of two periodic sequences with period N is called circular convolution
of two signal x1[n] and x2[n] is denoted by
Y[n]=x1[n]*x2[n]
4.5 codes:
linear convolution:
clc;
close all
clear all
x=input('enter x:');
h=input('enter h:');
m=length(x);
n=length(h);
X=[x,zeros(1,n)];
H=[h,zeros(1,m)];
for i=1:n+m-1
Y(i)=0;
for j=1:m
if(i-j+1>0)
Y(i)=Y(i)+X(j)*H(i-j+1);
else
end
end
end
stem(Y);
ylabel('Y(n)');
xlabel('--n');
title('convulation of two signal without convulation function');
clc;
close all;
clear all;
x1=input('Enter the first sequence :');
x2=input('Enter the second sequence:');
N1=length(x1);
N2=length(x2);
N=max(N1,N2);
if(N2>N1)
x4=[x1,zeros(1,N-N1)];
x5=x2;
elseif(N2==N1)
x4=x1;
x5=x2;
else
x4=x1;
x5=[x2,zeros(1,N-N2)];
end
x3=zeros(1,N);
for m=0:N-1
x3(m+1)=0;
for n=0:N-1
j=mod(m-n,N);
x3(m+1)=x3(m+1)+x4(n+1).*x5(j+1);
end
end
subplot(4,1,1)
stem(x1);
title('First Input Sequence');
xlabel('Samples');
ylabel('Amplitude');
subplot(4,1,2)
stem(x2);
title('Second Input Sequence');
xlabel('Samples');
ylabel('Amplitude');
subplot(4,1,3)
stem(x3);
title('Circular Convolution Using Modulo Operator');
xlabel('Samples');
autocorrelation
Linear convolution:
Circular convolution:
laboratory manual
Correlation Course code:
4.7 Result: