How to get inverse discrete time Fourier transform (IDTFT) of an array?
61 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Palguna Gopireddy
am 23 Jul. 2022
Kommentiert: Palguna Gopireddy
am 27 Jul. 2022
Apparently, there is no function to get IDTFT of an array. Is there any?
I used 'freqz(array,1)' to find the DTFT of an array from '0' to 'pi-pi/512'.
I also developed a code for DTFT for ab array A of length N from '-pi' to 'pi'
i=1
for wval=-pi:pi/512:pi
DFT(i)=sum(a.*exp(-1j*(0:N-1).*wval));
i=i+1;
end
But I do not know how to find IDTFT, when applied on a DTFT giving the original array.
0 Kommentare
Akzeptierte Antwort
Abderrahim. B
am 23 Jul. 2022
Hi!
Are you trying to implement DFT and its IDFT based on their equations ?
There are optimized algorithms to calculate these equations, the very well known one is the Fast Fourier Transform(FFT) and its inverse (IFFT). You may need to refer to this link for more explanation .
Demo:
Array = [1 2 3 4 5] % Sequence
arrFFT = fft(Array) % DFT based FFT
Array = ifft(arrFFT )
Hope this helps
9 Kommentare
Abderrahim. B
am 27 Jul. 2022
Bearbeitet: Abderrahim. B
am 27 Jul. 2022
Use fft2 and ifft2.
A = [1,2,3; 4,5,6] ;
[n_row, n_col ] = size(A) ;
A_2Dfft = fft2(A, 512, 512) ;
A_ifft2 = ifft2(A_2Dfft) ;
reconst_A = A_ifft2(1:n_row, 1:n_col) ;
isequal(reconst_A , A)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Discrete Fourier and Cosine Transforms 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!