Professional Documents
Culture Documents
Lab Report 10 by Moazzam
Lab Report 10 by Moazzam
Lab Report 10
Subject POCS
Lab Title FSK modulation and detection
Submitted by Saad kamran FA20-EPE-061
Submitted to Sir Dr Jamal Nasir
Generate baseband and carrier-modulated digital signals using FSK at different data rates. Verify
whether the data rate with constant pulse amplitude depends on the bandwidth of the modulated
wave or its power.
Code:
close all
clc
clear all
n = randi ( [0 1] , 1,5);
i=1;
t= 0:0.01:length(n);
for j=1:length(t)
if t(j)<=i
y(j)=n(i);
else
y(j)=n(i);
i=i+1;
end
end
subplot (311), plot (t,y,'k');
% carrier
f1=10;
f2=5;
yl=sin(2*pi*f1*t);
y2=sin(2*pi*f2*t);
for j=1:length(t)
if y(j)==1
z(j)=yl(j);
else
z(j) = y2(j);
end
end
COMSATS University Islamabad, Abbottabad Campus
Output:
COMSATS University Islamabad, Abbottabad Campus
Laboratory Assessment
Criteria Allocated Poor 40%- Good 51% Very Good Excellent Marks
Marks 50% - 70% 71% - 80% 81%-100% Obtained
(A)
Affective 10
(Evaluated
during the
lab)