Fourier transform of impulse function
이전 댓글 표시
I calculated the Fourier transform of a pulse function(figure 1) Using the fft function. However The fft result if kind of weird. Can anyone check if my code is right. //Thanks
clc
clear all
close all
t1=7.0e-08;
sigma=1e-08;
t=linspace(0,4.0000e-7,1000);
P=exp(-(t-t1).^2./sigma.^2);
P_FT=fft(P); %fourier transform of P
figure(1)
plot(t*10^6,P);
grid on
xlabel('time[\mus]')
ylabel('amplitude[a.u]')
figure(2)
plot(P_FT);
grid on
댓글 수: 1
Hira Asghar
2018년 2월 25일
Can u explain your signal 'p'?
채택된 답변
추가 답변 (1개)
Walter Roberson
2017년 2월 28일
0 개 추천
plot() with one argument that is complex-valued (hint!) plots real() of the parameter against imag() of the parameter.
카테고리
도움말 센터 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!