<< tfe | FOSSEE_Signal_Processing_Toolbox | triang >>

FOSSEE_Signal_Processing_Toolbox >> FOSSEE_Signal_Processing_Toolbox > tfestimate

# tfestimate

Estimate transfer function of system with input x and output y. Use the Welch (1967) periodogram/FFT method.

### Syntax

    tfestimate (x, y)
    tfestimate (x, y, window)
    tfestimate (x, y, window, overlap)
    tfestimate (x, y, window, overlap, Nfft)
    tfestimate (x, y, window, overlap, Nfft, Fs)
    tfestimate (x, y, window, overlap, Nfft, Fs, range)

### Parameters

x:

  system-input time-series data. Real pr complex vector.

y:

  system-output time-series data. Real or complex vector, same dimension as x.

window:

  [real vector] of window-function values between 0 and 1; the data segment has the same length as the window. Default window shape is Hamming.

overlap:

  [real scalar] segment overlap expressed as a multiple of window or segment length. 0 <= overlap < 1, The default is overlap = 0.5.

Nfft:

  [integer scalar] Length of FFT. The default is the length of the "window" vector or has the same value as the scalar "window" argument. If Nfft is larger than the segment length, "seg_len", the data segment is padded with "Nfft-seg_len" zeros. The default is no padding. Nfft values smaller than the length of the data segment (or window) are ignored silently.

Fs:

  [real scalar] sampling frequency (Hertz); default = 1.0

range:

  'half', 'onesided' : frequency range of the spectrum is zero up to but not including Fs/2. Power from negative frequencies is added to the positive side of the spectrum,but not at zero or Nyquist (Fs/2) frequencies. This keeps power equal in time and spectral domains. 'whole', 'twosided': frequency range of the spectrum is -Fs/2 to Fs/2, with negative frequencies stored in "wrap around" order after the positive frequencies; e.g. frequencies for a 10-point 'twosided' spectrum are 0 0.1 0.2 0.3 0.4 0.5 -0.4 -0.3 -0.2 -0.1 'shift', 'centerdc' : same as 'whole' but with the first half of the spectrum swapped with second half to put the zero-frequency value in the middle. If data (x and y) are real, the default range is 'half', otherwise default range is 'whole'.

### Description

Estimate transfer function of system with input x and output y. Use the Welch (1967) periodogram/FFT method.

### Examples

    [Pxx, freq] = tfestimate([1 2 3], [4 5 6])

### See also

- pwelch — Estimate power spectral density of data "x" by the Welch (1967) periodogram/FFT method.

Report an issue
<< tfe | FOSSEE_Signal_Processing_Toolbox | triang >>