You are on page 1of 3

COMSATS University Islamabad, Abbottabad Campus

Lab Report 10
Subject POCS
Lab Title FSK modulation and detection
Submitted by Saad kamran FA20-EPE-061
Submitted to Sir Dr Jamal Nasir

FSK modulation and detection

Statement of the problem:

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

subplot (312), plot (t, z, 'k');


% detection
for j=1:length(t)
if z(j)==yl(j)
k(j)=1;
else
k(j)=0;
end
end
subplot (313), plot (t,k);

Output:
COMSATS University Islamabad, Abbottabad Campus

Laboratory Assessment

Criteria Allocated Poor Good Very Excellent Marks


Marks 40%-50% 51% - Good 81%- Obtained
70% 71% - 100% (P)
80%
Psychomotor 70
(Evaluated
during the
experiment)

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)

Criteria Allocated Poor Good 51% Very Excellent Marks


Marks 40%-50% - 70% Good 71% 81%- Obtained
- 80% 100% (C)
Cognitive 20
(Evaluated
on report
submission)

Obtained Marks = (0.7×P) + (0.1×A) + (0.2×C) = : Total Marks:

You might also like