MatLab Solutions: "Introduction to Digital Signal Processing: A Computer Laboratory Textbook".
29 Oct 2012
25 Nov 2013)
These files are the MatLab solutions of exercises contained in the above DSP lab textbook.
% Two-dimensional Inverse FFT computation.
% Input X is an arbitrary real or complex matrix.
% Output Y is its 2D inverse DFT transform.
function Y = my_IFFT_2D(X)
[rows cols] = size(X);
X1 = zeros(rows,cols);
Y = zeros(rows,cols);
% Compute the IFFT row-wise:
X1(i,:) = ifft(X(i,:));
% Because of the 2D-IFFT separability, now
% compute the inverse FFT column-wise on matrix X1:
Y(:,j) = ifft(X1(:,j));