Skip to Main Content Skip to Search
Product Documentation

etfe - Estimate empirical transfer functions and periodograms

Syntax

g = etfe(data)
g = etfe(data,M,N)

Description

etfe estimates the transfer function g as an idfrd object of the general linear model:

data contains the output-input data and is an iddata object (time or frequency domain).

g is given as an idfrd object with the estimate of at the frequencies

w = [1:N]/N*pi/T

The default value of N is 128.

In case data contains a time series (no input channels), g is returned as the periodogram of y.

When M is specified other than the default value M = [], a smoothing operation is performed on the raw spectral estimates. The effect of M is then similar to the effect of M in spa. This can be a useful alternative to spa for narrowband spectra and systems, which require large values of M.

When etfe is applied to time series, the corresponding spectral estimate is normalized in the way that is defined in Spectrum Normalization. etfe normalization differs from the spectrum normalization in the Signal Processing Toolbox™ product.

If the (input) data is marked as periodic (data.Period = integer) and contains an even number of periods, the response is computed at the frequencies k*2*pi/period for k = 0 up to the Nyquist frequency.

Examples

Compare an empirical transfer function estimate to a smoothed spectral estimate.

load iddata z1;
ge = etfe(z1);
gs = spa(z1);
bode(ge,gs)

Generate a periodic input, simulate a system with it, and compare the frequency response of the estimated model with the true system at the excited frequency points.

m = idpoly([1 -1.5 0.7],[0 1 0.5]);
u = iddata([],idinput([50,1,10],'sine'));
u.Period = 50;
y = sim(m,u);
me = etfe([y u])
bode(me,'b*',m,'r')

Algorithms

The empirical transfer function estimate is computed as the ratio of the output Fourier transform to the input Fourier transform, using fft. The periodogram is computed as the normalized absolute square of the Fourier transform of the time series.

You obtain the smoothed versions (M less than the length of z) by applying a Hamming window to the output fast Fourier transform (FFT) times the conjugate of the input FFT, and to the absolute square of the input FFT, respectively, and subsequently forming the ratio of the results. The length of this Hamming window is equal to the number of data points in z divided by M, plus one.

See Also

bode | freqresp | idfrd | impulseest | nyquist | spa | spafdr | spectrum

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS