Zero Padding the center of data
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Laiba Qadeer
am 8 Mär. 2020
Kommentiert: Laiba Qadeer
am 9 Mär. 2020
I am interpolating the signal by fourier transform. For this purpose, I have to fft on the signal, and the zero pad the center of the fourier transformed data (eg. if there are 32 data points, 32 zeros are to be added after the 16th data point (consisting of both real and imaginary number). Afterwards, this signal is inverse fourier transformed to get 2xinterpolation.
Please tell me which code can I use to zero-pad the center of the fourier transformed data.
Thanks,
0 Kommentare
Akzeptierte Antwort
Star Strider
am 8 Mär. 2020
7 Kommentare
Star Strider
am 9 Mär. 2020
It is straightforward to increase the frequency resolution of a Fourier transform (or time resulution of an inverse Fourier transform) by zero-padding it. In the fft or ifft functions, just specify a value for ‘n’ greater than the original signal length. The functions themselves take care of the rest. (Note that the ifft function allows the specification of the argument array to be conjugate symmetric.) The only absolute requirement is that the sampling times (or sampling frequencies) be regularly-spaced.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multirate Signal Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!