Home > Objects > @iData > fft.m

iFit/fft

PURPOSE ^

c = fft(a) : computes the Discrete Fourier transform of iData objects

SYNOPSIS ^

function b = fft(a, op, dim)

DESCRIPTION ^

 c = fft(a) : computes the Discrete Fourier transform of iData objects

   @iData/fft function to compute the Discrete Fourier transform of data sets
     using the FFT algorithm. The power spectrum density (PSD) is abs(fft)^2.
     fft(a, 'ifft') is equivalent fo ifft(a)
     fft(a, op, dim) and fft(a, dim) apply FFT or iFFT along dimension dim. 

 input:  a:   object or array (iData)
         op:  can be 'fft' (default) or 'ifft' (inverse)
         dim: dimension to apply FFT upon. dim=0 for all dimensions.
 output: c: object or array (iData)
 ex:     t=linspace(0,1,1000); 
         a=iData(t,0.7*sin(2*pi*50*t)+sin(2*pi*120*t)+2*randn(size(t)));
         c=fft(a); plot(abs(c));

 Version: Nov. 26, 2018
 See also iData, iData/ifft, iData/conv, FFT, IFFT

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1