0% found this document useful (0 votes)
7K views2 pages

Sum of Sine Signals Using Matlab

This document summarizes an experiment in MATLAB to verify the sum of sinusoidal signals and observe the Gibbs phenomenon effect. The program generates 5 sine signals with increasing frequencies and sums them to represent a Fourier series. It plots the individual sine waves and their sum against time to demonstrate that the sum of sinusoidal signals approximates the Fourier series representation of a signal.

Uploaded by

Azeez Hussain
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
7K views2 pages

Sum of Sine Signals Using Matlab

This document summarizes an experiment in MATLAB to verify the sum of sinusoidal signals and observe the Gibbs phenomenon effect. The program generates 5 sine signals with increasing frequencies and sums them to represent a Fourier series. It plots the individual sine waves and their sum against time to demonstrate that the sum of sinusoidal signals approximates the Fourier series representation of a signal.

Uploaded by

Azeez Hussain
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

Sum of Sinusoidal Signals

AIM: To verify Sum of Sinusoidal Signals using MATLAB


EQUIPMENTS:
Operating System – Windows XP
Constructor - Simulator
Software - MATLAB 10
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;

You might also like