Fourier Transform of Rectangular Pulse

86 次查看(过去 30 天)
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

采纳的回答

Star Strider
Star Strider 2021-6-1
A symbolic approach —
syms t omega
F(omega) = int(1*exp(1j*omega*t), t, -0.25, 0.25)
F(omega) = 
figure
fplot(F, [-1 1]*16*pi)
grid
.
For a numeric calculation use the fft function.
  4 个评论
Kutlu Yigitturk
Kutlu Yigitturk 2021-6-1
I am an engineering student studying in Turkey. Throughout my university life, I have never received as much help from anyone as you did. Really thank you so much. God bless you.
Star Strider
Star Strider 2021-6-1
I very much appreciate your compliment!
As always, my pleasure!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by