Laboratory Report Cover Sheet: Faculty of Engineering
Laboratory Report Cover Sheet: Faculty of Engineering
Faculty of Engineering
Please submit all reports to your subject supervisor or the office of the concerned faculty.
Laboratory Title: Study of signal frequency, spectrum, bandwidth, bit rate, quantization
using MATLAB
Experiment Number : 02 Due Date: 19.07.2020 Semester: Summer 19-20
Subject Name: Principles of Communications Section: C
Submitted by:
Ans:
My ID: 18-37223-1
AB-CDEFG-H
So,
A=1
B=8
C=3
D=7
E=2
F=2
G=3
H=1
Matlab codes:
fs=20000;
t = [-0.004:1/fs:0.004];
A1=37;
A2=12;
x1=A1*cos(2*pi*300*t);
x2=A2*cos(2*pi*200*t);
x3=x1+x2;
plot(t,x3);
hold on
grid on
Output:
Figure 1: Output(b)
MATLAB commands:
fs=20000;
t = [-0.004:1/fs:0.004];
A1=37;
A2=12;
x1=A1*cos(2*pi*300*t);
x2=A2*cos(2*pi*200*t);
x3=x1+x2;
plot(t,x3);
hold on
grid on
fx3=fft(x3);
plot(t,abs(fx3),'r');
bandwidth=obw(fx3,fs)
Output: