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

Experiment 9

Important

Uploaded by

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

Experiment 9

Important

Uploaded by

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

Experiment-9:

Gibbs Phenomenon (With Sinusoidal Signals)


AIM: To verify Gibbs Phenomenon With Sinusoidal Signals using MATLAB
EQUIPMENT:
Operating System – Windows XP
Constructor - Simulator
Software - MATLAB 2012a
THEORY:
To generate fourier series of a signal by observing sum of sinusoidal signals & observing
gibbs phenomenon effect.

PROGRAM:

% sum of sinusoidal signals


clc;
clear all;
close all;
tic;
%giving linear spaces
t=0:.01:pi;
% t=linspace(0,pi,20);
%generation of sine signals
y1=sin(t);
y2=sin(3*t)/3;
y3=sin(5*t)/5;
y4=sin(7*t)/7;
y5=sin(9*t)/9;
y = sin(t) + sin(3*t)/3 + sin(5*t)/5 + sin(7*t)/7 + sin(9*t)/9;
plot(t,y,t,y1,t,y2,t,y3,t,y4,t,y5);
legend('y','y1','y2','y3','y4','y5');
title('generation of sum of sinusoidal signals');grid;
ylabel('---> Amplitude');
xlabel('---> t');
toc;
PROCEDURE:
1. Open the Mat lab software by clicking on icon.
2. Create a new file (file🡪new🡪.m file).
3. Now type the program in that file.
4. Save the program as .m file(file🡪save)
5. Run the program(debug🡪run)
6. Observe the output plots.

RESULTS:
Hence generation fourier series of a signal by observed sum of sinusoidal signals &
gibbs phenomenon effect.

You might also like