Matlab program to find the IDFT

%Write a Matlab program to find the IDFT of the following sequence.

x=input('Enter the sequence for which IDFT to be computed');

x=ifft(x);

display('the IDFT of given sequence');

display(x);

figure;subplot(211);stem(real(x));title('real part of IDFT');

subplot(212);stem(imag(x));title('real part of IDFT');