Introduction - If you have any usage issues, please Google them yourself
Use function to create a non-negative rectangular pulse, and then use the spectral analysis of the rectangular pulse function spectral analysis, and the frequency shift correction (using FFTSHIFT), observed that the pulse spectrum.