Fourier Transform of Rectangular Pulse
171 views (last 30 days)
Show older comments
Kutlu Yigitturk
on 1 Jun 2021
Commented: Star Strider
on 1 Jun 2021
clear all
close all
clc
%fs = 500;
T = 1;
t = -2.5 : 0.001 : 2.5;
x = rectpuls(t,T);
subplot(2,1,1)
plot(t,x,'r','Linewidth',3);
axis([-2.5 2.5 0 1.2])
title({'Rectangular Pulse'})
xlabel({'Time(s)'});
ylabel('Ampltude');
grid
How can I get Fourier Transform of this Rectangular Pulse. Thank you.
It should look like this
0 Comments
Accepted Answer
Star Strider
on 1 Jun 2021
A symbolic approach —
syms t omega
F(omega) = int(1*exp(1j*omega*t), t, -0.25, 0.25)
figure
fplot(F, [-1 1]*16*pi)
grid
.
4 Comments
More Answers (0)
See Also
Categories
Find more on Switches and Breakers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!