Вы находитесь на странице: 1из 13

Analog Communication Systems

Name: Shaik Suhil Irshad


Reg no: 18BEC2007
Slot : A1+TA1

Section 2

1) Simulation of SSBSC-AM signal(200% modulation) with


sawtooth
modulating signal and calculation of bandwidth and power
Ans : code:
% carrier frequency
fc = 200;

% baseband frequency
fm = 30;

% sampling frequency
fs= 4000;

% time duration
t = (0 : 1 / fs :1 );
t = linspace(0, 1, 1000);

% cosine wave with time duration of 't'


m = cos(2 * pi * fm * t);

% Hilbert transform of baseband


mh = imag(hilbert(m));

% Single Side Band with Upper Side Band


sb = m .* cos(2 * pi * fc * t) - mh .* sin(2 * pi * fc * t);

% displaying the modulation


figure;
plot(t, sb);
title('Single SideBand Modulation');
xlabel('Time(sec)');
ylabel('Amplitude');
output :
2) Simulation of Frequency Modulation of a Multi tone Multi
channel signal. Set frequency deviation 10 times the
frequency of modulating signal. Set lower carrier frequency to
visualize the frequency deviation in the modulated curve
Ans)
%frequency modulation of multi tone signal
%frequency deviation = 10*fm
fc=1000;%carrier frequency
fs=10000;%sampling frequency (fs>2*(fc+BW))
fm1=200;%modulating signal 1 frequency
fm2=500;%modulatong signal 2 frequency
A=1;%amplitude of modulating signal
dev=10*fm1;%frequency deviation
t=0:1/fs:(2/fm1)-(1/fs);%time axis
v1=A*sin(2*pi*fm1*t);%modulating signal 1
v2=A*sin(2*pi*fm2*t);%modulating signal 1
v=v1+v2;
y=fmmod(v,fc,fs,dev);
subplot(2,1,1);
plot(v);
title('Multi Tone Modulating signal');
subplot(2,1,2);
plot(y);
title('frequency Modulating Signal');
output )

3) Simulation of phase modulation and demodulation of a


single tone signal. Set phase deviation equal to π and lower
carrier frequency to properly visualize the variation in the
frequency of the phase modulated signal
Sol) %phase modulation of single tone signal
%phase deviation = pi
%lower carrier frequency
fc=1000; %carrier frequnecy
fs=10000; %sampling frequency (fs>=2*fc)
fm=100; %modulating signal frequency
A=1; %amplitude of moduating signal frequency
dev=pi; %phase deviation
t=0:1/fs:(2/fm)-(1/fs); %time
w=2*pi*fm*t; %angular frequency
v=A*sin(w); %modulating signal

y=pmmod(v,fc,fs,dev) %modulate
z=pmdemod(y,fc,fs,dev); %demodulate
subplot(3,1,1);
plot(v);
title('Modulating signal');

subplot(3,1,2);
plot(y);
title('Phase modulated signal');
subplot(3,1,3);
plot(z);
title('demodulated signal');

4) Simulation of DSBSC modulation and demodulation of


sinusoidal modulating signal
Sol)
% ACS DSB-SC Modulation & De-Modulation
clf;
t = 0:1/1000:2;
fH = 15;
fL = 2;
xH = sin(2*pi*fH.*t);
xL = sin(2*pi*fL.*t);
% Modulation
y = xL.*xH;
% De-Modulation By Synchoronous Method
m = y.*xH;
% Filtering High Frequencies
[n,w] = buttord(2/1000,4/1000,.5,5);
[a,b] = butter(n,w,'low');
dem = filter(a,b,m);
subplot(2,2,1);
plot(t,xH,'b',t,xL,'r');
title('m(t) & c(t)');
grid;
axis([0 2 -1.2 1.2]);
subplot(2,2,2);
plot(t,y,'k');
title('DSBSC');
grid;
axis([0 2 -1.2 1.2]);
subplot(2,2,3);
plot(t,m);
title('De-Modulated');
grid;
axis([0 2 -1.2 1.2]);
subplot(2,2,4);
plot(t,dem);
title('Filtered Signal');
grid;
axis([0 2 -1.2 1.2]);

Вам также может понравиться