MATLAB Answers

¿Why the phase of the Fourier transform whith "angle" fuction of a rectangular pulse function is not odd?

11 views (last 30 days)
Paulina Zea
Paulina Zea on 7 Oct 2020
Edited: David Goodmanson on 9 Oct 2020
Hi, I want to calculate the phase of the Fourier Transform of a regtangular pulse but I cant understand why the phase of this function must be odd as the books said. When I find the phase of my function with angle function the phase is even. Could you explain why the phase in the case of a REAL Fourier transform is also odd and how I can get that result in Matlab? Thanks
w=[-10:0.0001:10]; %Frequency vector
X=4*sinc(2*pi*w); %Fourier Transform of a rectangular pulse
figure()
subplot(2,2,1)
plot(w,X); title('X(jw)')
subplot(2,2,3)
plot(w,abs(X)); title('Magnitude')
subplot(2,2,4)
plot(w,angle(X)); title('Phase')

Answers (1)

David Goodmanson
David Goodmanson on 9 Oct 2020
Edited: David Goodmanson on 9 Oct 2020
Hi Paulina,
neglecting some unimportant (in this context) real constants, the fourier transform of the square pulse is
sin(w*t0)/w = (exp(i*w*t0) - exp(-i*w*t0)/(2*i*w)
If you incorporate the minus sign and the i in the denominator into the exponenentials the result is
= (exp(i*w*t0 - i*pi/2) + exp(-i*w*t0 + i*pi/2)/(2*w)
and you can see that the phase shift of the positive frquency part and the phase shift of the negative fequency part have opposite signs. So comparing positive to negative trequency, the phase shifts have opposite signs and the phase shift is odd.
When you take the angle of sin(w*t0)/w, which is a real, even function, you just get 0 for the phase when the function is positive and pi for the phase when the function is negative. So it's basically looking at the sign of a real function and that function happens to be even. But that is much different from comparing the positive and negative frequency contributions as should be done.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!