Fast Fourier Transform in MATLAB

3 次查看(过去 30 天)
Taha Adel
Taha Adel 2021-1-1
评论: Taha Adel 2021-1-2
Hello,
I'm facing a weird problem in MATLAB regarding fft and ifft functions. I have defined a Raised-Cosine filter in the frequency domain as shown.
With a roll-off factor r equal 1, the impulse response of the filter in the time domain should be Sinc with Null-to-Null Bandwidth equal to Ts as shown below
The above results are taken from MATLAB and they are completely correct according to Nyquist Criterion. But, now I'm running the code again and getting weird results in the impulse response output. The output now is Sinc with Amp 0.5 and Null-to-Null 2Ts. It seems that the signal is stretched out.
Any ideas about the root cause of such a problem?

回答(1 个)

Matt J
Matt J 2021-1-1
If you are getting different output from the same code, it can only mean that the input has changed.
  1 个评论
Taha Adel
Taha Adel 2021-1-2
Nothing is changed neither the code nor the inputs to the program. Simply, the rect signal has bandwidth 1/2T in frequency domain should give SInc with Null-to-NUll Bandwidth equal to 1/T in time domain :(

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Signal Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by