[go: up one dir, main page]

0% found this document useful (0 votes)
32 views6 pages

Analysis of Signals Used in Analog Communication

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 6

Analysis of signals used in Analog Communication

This file is being created to give the students a better understanding of :-

1. Time Domain and Frequency Domain signals

2. Convolution

3. Filtering

Take the Example of two sinusoidal signals of 10 Hz and 100 Hz frequency respectively.

We add these two signals to create a new signal.

fs = 1000;
L = 1000;
T = 1/fs;
f1 = 10;
f2 = 100;
fc = 50;
t = (0:(L-1))*T;
s1 = 2*cos(2*pi*f1*t);
s2 = 3*cos(2*pi*f2*t);
sig = s1 + s2;
plot(sig)

% Compute its spectral components


Y = fft(sig);
f = Fs*(0:(L/2))/L;
P2 = abs(Y/L);
P1 = P2(1:L/2+1);
P1(2:end-1) = 2*P1(2:end-1);
figure
plot(f,P1)

% To separate these signals we apply a HPF cenetered at 50 Hz


[b,a] = butter(6,50/(fs/2),'high');

fvtool(b,a,'Fs',1000)

% Filtered waveform
x = filter(b,a,sig);
figure
plot(x)

% We could have applied the LPF


[c,d] = butter(6,50/(fs/2));

xLPF = filter(c,d,sig);
figure
plot(xLPF)
Now we generate a DSB-SC waveform and see its spectral component

fs = 1000;
L = 1000;
T = 1/fs;
f1 = 10;
f2 = 100;
fc = 50;
t = (0:(L-1))*T;
s1 = 2*cos(2*pi*f1*t);
s2 = 3*cos(2*pi*f2*t);
sig = s1 .* s2;
plot(sig)
n = 2^nextpow2(L);
Y = fft(sig);
f = Fs*(0:(L/2))/L;
P2 = abs(Y/L);
P1 = P2(1:L/2+1);
P1(2:end-1) = 2*P1(2:end-1);
figure
plot(f,P1)
Now we see that multiplication in time domain has resulted in convolution in frequency domain and
simple filtering will not generate any meaningful results.

Prepared by AP Irfan Majid

You might also like