0% found this document useful (0 votes)
6 views2 pages

Scilab Code FSK With Steps

The document outlines a MATLAB script for generating and plotting signals related to Frequency Shift Keying (FSK). It includes steps to create a modulating signal, a carrier signal, and the resulting FSK signal, along with their respective plots. Additionally, it computes and displays the frequency spectrum of the FSK signal using a Fast Fourier Transform (FFT).
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)
6 views2 pages

Scilab Code FSK With Steps

The document outlines a MATLAB script for generating and plotting signals related to Frequency Shift Keying (FSK). It includes steps to create a modulating signal, a carrier signal, and the resulting FSK signal, along with their respective plots. Additionally, it computes and displays the frequency spectrum of the FSK signal using a Fast Fourier Transform (FFT).
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/ 2

Step 1: // Yash P Palkar

Step 2: // 22B-ET-076

Step 3: // TE ETC Engineering Sem V 2024-25

Step 4: // Goa College Of Engineering

Step 5: fs=100;

Step 6: t=[0:1/fs:10-1/fs];

Step 7: A=5;

Step 8: fc=10;

Step 9: figure(1);

Step 10: Vm=A.*squarewave(t);

Step 11: subplot(3,1,1);

Step 12: plot(t,Vm);

Step 13: xlabel('Time');

Step 14: ylabel('Amplitude');

Step 15: title('Modulating Signal');

Step 16: Vc=A.*cos(2.*%pi.*fc.*t);

Step 17: subplot(3,1,2);

Step 18: plot(t,Vc);

Step 19: xlabel('Time');

Step 20: ylabel('Amplitude');

Step 21: title('Carrier Signal');

Step 22: fd=0.5; //frequency deviation

Step 23: Vf=A.*cos(2.*%pi.*(fc+Vm.*fd).*t);

Step 24: subplot(3,1,3);

Step 25: plot(t,Vf);

Step 26: xlabel('Time');


Step 27: ylabel('Amplitude');

Step 28: title('FSK Signal');

Step 29: figure(2);

Step 30: l=length(t);

Step 31: f=[-l/2:l/2-1].*fs/l;

Step 32: plot(f,fftshift(abs(fft(Vf))));

Step 33: xlabel('Frequency');

Step 34: ylabel('Magnitude Response');

Step 35: title('Spectrum of FSK Signal');

You might also like