Transforming Between Time and Frequency-Domain Data

The iddata object stores time-domain or frequency-domain data. The following table summarizes the commands for transforming data between time and frequency domains.

CommandDescriptionSyntax Example
fft

Transforms time-domain data to the frequency domain.

You can specify N, the number of frequency values.

To transform time-domain iddata object t_data to frequency-domain iddata object f_data with N frequency points, use:

f_data = 
  fft(t_data,N)
ifftTransforms frequency-domain data to the time domain. Frequencies are linear and equally spaced.

To transform frequency-domainiddata object f_data to time-domain iddata object t_data, use:

t_data = 
  ifft(f_data)

Related Examples

More About