Mat Lab Program For F SK Transmitter and Receiver
Mat Lab Program For F SK Transmitter and Receiver
clc
close all
clear all
% Message signal input and ploting
%Modulation section
for j=1:N1
if x(j)==1
y1(j)=x1(j);
else
y1(j)=x2(j);
end
end
subplot(3,2,4);
plot(t,y1);
title('Modulated FSK output');
xlabel('Time');
ylabel('Amplitude');
grid on
for j=1:N1
if y1(j)==x1(j)
y2(j)=1;
else
y2(j)=0;
end
end
subplot(3,2,5);
Output