Fourier Transform of Rectangular Pulse
조회 수: 49 (최근 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/638825/image.png)
It should look like this
댓글 수: 0
채택된 답변
Star Strider
2021년 6월 1일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Switches and Breakers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!