0% found this document useful (0 votes)
64 views8 pages

FSK Modulation and Demodulation

This document describes frequency-shift keying (FSK) modulation and demodulation. It generates a message signal, two carrier signals at different frequencies, performs FSK modulation by switching between the carriers according to the message signal, and demodulates the FSK signal back to the original message. Plots of each signal are displayed to illustrate the FSK modulation and demodulation process.

Uploaded by

Harsh mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views8 pages

FSK Modulation and Demodulation

This document describes frequency-shift keying (FSK) modulation and demodulation. It generates a message signal, two carrier signals at different frequencies, performs FSK modulation by switching between the carriers according to the message signal, and demodulates the FSK signal back to the original message. Plots of each signal are displayed to illustrate the FSK modulation and demodulation process.

Uploaded by

Harsh mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Fsk Modulation and Demodulation

clc
clear all
close all
x=[1 0 1 0]
t=0:0.01:length(x)-0.01
display(length(x))
y=[]
j=1
for i=1:length(t)
if t(i)<j
y(i)=x(j)
else
j=j+1;
y(i)=x(j)
end
end
f1=5;
c1=sin(2*pi*f1*t);
f2=10;
c2=sin(2*pi*f2*t);
FSK=[];
for i=1:length(t)
if y(i)==1
FSK(i)=c1(i)

else
FSK(i)=c2(i)
end
end
for i=1:length(FSK)
if FSK(i)==c1(i)
z(i)=1;

else
z(i)=0;
end
end
subplot(5,1,1)
plot(t,y)
subplot(5,1,2)
plot(t,c1)
subplot(5,1,3)
plot(t,c2)
subplot(5,1,4)
plot(t,FSK)
subplot(5,1,5)
plot(t,z)
%xlabel('time')
%ylabel('amplitude')
%title('message signal')
%subplot(4,1,2)
%plot(t,c1)
%xlabel('time')
%ylabel('amplitude')
%title('ask signal')
%subplot(4,1,3)
%plot(t,ASK)
%xlabel('time');
%ylabel('amplitude');
%title('ASK signal');
%subplot(4,1,4);
%plot(t,z);
%xlabel('time');
%ylabel('amplitude');
%title('ASK signal');

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy