logo

Comparison of ADSL2+ router and cable modem router

   

Added on  2023-01-04

16 Pages1797 Words77 Views
 | 
 | 
 | 
Name of the Student
Name of the University
Author Note
Comparison of ADSL2+ router and cable modem router_1

1
Assignment Answers
Part-A
1.1. Matlab code for the given bit pattern 01001, encode this data using ASK, FSK and PSK
%matlab code for digital modulation(ask, fsk and psk)
f=5;
f2=10;
x=[0 1 0 0 1] % input signal ;
nx=size(x,2);
i=1;
while i<nx+1
t = i:0.001:i+1;
if x(i)==1
ask=sin(2*pi*f*t);
fsk=sin(2*pi*f*t);
psk=sin(2*pi*f*t);
Comparison of ADSL2+ router and cable modem router_2

2
else
ask=0;
fsk=sin(2*pi*f2*t);
psk=sin(2*pi*f*t+pi);
end
subplot(3,1,1);
plot(t,ask);
hold on;
grid on;
axis([1 10 -1 1]);
title('Amplitude Shift Key')
subplot(3,1,2);
plot(t,fsk);
hold on;
grid on;
axis([1 10 -1 1]);
title('Frequency Shift Key')
Comparison of ADSL2+ router and cable modem router_3

3
subplot(3,1,3);
plot(t,psk);
hold on;
grid on;
axis([1 10 -1 1]);
title('Phase Shift Key')
i=i+1;
end
Comparison of ADSL2+ router and cable modem router_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents