home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / DATAFUN.DI$ / IFFT.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  472 b   |  23 lines

  1. function y = ifft(x,nfft)
  2. %IFFT    Inverse discrete Fourier transform.
  3. %    IFFT(X) is the inverse discrete Fourier transform of vector X.
  4. %    IFFT(X,N) is the N-point inverse transform.
  5. %
  6. %    See also FFT, FFT2, IFFT2, FFTSHIFT.
  7.  
  8. %    J.N. Little 4-21-85
  9. %    Revised 6-11-88 JNL
  10. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  11.  
  12. if nargin == 2
  13.     y = conj(fft(conj(x),nfft));
  14. else
  15.     y = conj(fft(conj(x)));
  16. end
  17. [m,n] = size(y);
  18. if m == 1
  19.     m = n;
  20. end
  21. y = y/m;
  22.  
  23.