Вы находитесь на странице: 1из 11

J-Component Report

ECE1004
SIGNALS AND SYSTEMS
Winter semester 2017-2018
Find The Phase And Magnitude Of
Fourier Transformation Of Any
Rectangular Pulse

Submitted by:
Name: SANDEEP KUMAR , Reg. no: 15BEC0909
Name: GADUPUTI SAI YUKTHA, Reg. no: 17BEC0445
Name: ANKIT KUMAR ROSHAN, Reg. no: 17BEC0132

Submitted to:
PROF.SHARMILA N
CERTIFICATE

This is to certify that the project work entitled “finding the phase and amplitude of fourier
transform of rectangular pulse using matlab” that is submitted by Sandeep kumar,yuktha and
ankith for signals Signals and Systems (ECE1004) is a record of bonafide work done under my
supervision. The contents of this project work, in full or in parts, have neither been taken from
any other source nor have been submitted for any other CAL course.

Place: Vellore

Date: 04-04-18
ACKNOWLEDGEMENTS

We have taken efforts in this project. However, it would not have been possible without the
kind support and help of many individuals and organizations. I would like to extend my
sincere thanks to all of them. We would like to express my special thanks of gratitude to our
teacher, Prof.Sharmila N as well as our Head of Department, Prof. Renuga Devi S, who gave
us the golden opportunity to do this wonderful project on the topic, finding the phase and
amplitude of fourier transform of rectangular pulse, which also helped me in doing a lot of
Research and we came to know about so many new things we am really thankful to them. I
would also like to extend my gratitude to the VIT University management for letting us do
this project. Secondly, we would also like to thank my parents and friends who helped us a
lot in finalizing this project within the limited time frame.
AIM:- Find The Phase And Magnitude Of Fourier Transformation Of Any Rectangular
Pulse.

Rectangular Function:-
The rectangular function (also known as the rectangle function, rect function, Pi
function, gate function, unit pulse, or the normalized boxcar function.

Fourier transform of Rectangular Pulse:-


The unitary Fourier transforms of the rectangular function are

using ordinary frequency f, and

using angular frequency ω, where sinc is the unnormalized form of the sinc function
Important of sinc filter:-
In signal processing, a sinc filter is an idealized filter that removes all frequency
components above a given cutoff frequency, without affecting lower frequencies, and has
linear phase response. The filter's impulse response is a sinc function in the time domain,
and its frequency response is a rectangular function.
FOURIER TRANSFORM MAGNITUDE OF A RECTANGULAR
PULSE:-
A rectangular pulse and its spectrum a phase shift at each frequency defined by , where is
an integer other than zero, and is the pulse duration. These frequencies are the zeros of
the magnitude spectrum.

Expected Output:
FOURIER TRANSFORM PHASE OF A RECTANGULAR PULSE:-

This Demonstration illustrates the relationship between a rectangular pulse signal and its
Fourier transform. There are three parameters that define a rectangular pulse: its height
, width in seconds, and center . Mathematically, a rectangular pulse delayed by
seconds.

ExpectedOutput:
MATLAB CODE:-
clc;
close all;
%-----------RECTANGULAR PULSE-----------
t = -2: 0.001 : 4;
f = zeros(size(t));
T=input('enter the width of rectangular pulse');
for i = 1 : length(t)
if (t(i))>=0 && (t(i))<=T
f(i) = 1;
else
f(i) = 0;
end
end
figure(1);
plot(t,f,'LineWidth',3);
ylim([0 2])
xlabel('t (sec)');
ylabel('f(t)');
title('Rectangular Function');
%-------------FOURIER TRANSFORM OF RECTANGULAR PULSE---------
omega = (-10 : 0.01 : 10);
F = zeros(size(omega));
for i = 1 : length(omega)
F(i) = trapz(t,f.*exp(-1i*omega(i)*t));
end
disp('Fourier Transform of rectangular pulse')
disp(F(i));
%----------Magnitude of the Fourier Transform----------
F_mag = abs(F);
figure(2);
plot(omega,F_mag);
xlabel('\omega (rad/sec)');
ylabel('|F(j\omega)|');
title('Fourier Transform Magnitude of a Rectangular
pulse'); %----------Phase of the Fourier transform---------
-- F_phase=angle(F);
figure(3);
plot(omega,F_phase);
xlabel('\omega(rad/sec)');
ylabel('phase spectrum(rad)');
title('Fourier transform Phase of a rectangular pulse');
FINAL OUTPUT OF OUR TOPIC
RECTANGULAR FUNCTION GRAPH:-

FOURIER TRANSFORMMAGNITUDE OF A RECTANGULAR PULSE:-


FOURIER TRANSFORM PHASE OF A RECTANGULAR PULSE:

REFERENCE:-
https://en.wikipedia.org/wiki/Sinc_filter
http://www.thefouriertransform.com/pairs/box.php

https://www.youtube.com/watch?v=_HJH3MekMHY

Вам также может понравиться