MATLAB: Can anyone explain how the phase angle should look like for a square pulse with pulse width 1 that has undergone FFT in matlab

signals

What I have so far is the first attachment, after the frequency limit adjustment, I have the second attachment. I do not understand how the phase angle compares to the theoretical phase angle of the DFT. PLEASE HELP!

Best Answer

The phase of a symmetric square pulse is uniformly zero, because the Fourier transform is purely real:
syms w t
FTpulse = int(1*exp(1j*w*t), t, -0.5, 0.5)
FTpulse =
(2*sin(w/2))/w
Related Question