System Identification Toolbox    
resid

Compute and test the residuals (prediction errors) of a model.

Syntax

Description

data contains the output-input data as an iddata object

m is the model to be evaluated on the given data set. It is any idmodel object.

In all cases the residuals e associated with the data and the model are computed. This is done as in the command pe with a default choice of init.

When called without output arguments, resid produces a plot. The plot can be of three kinds depending on the argument Type:

With an output argument, no plot is produced, and e is returned with the residuals (prediction errors) associated with the model and the data. It is an iddata object with the residuals as outputs and the input in data as inputs. That means that e can be directly used to build model error models, i.e., models that describe the dynamics from the input to the residuals (which should be negligible if m is a good description of the system).

See Model Structure Selection and Validation in the "Tutorial" chapter for more information.

Examples

Here are some typical model validation commands.

To compute a "model error model," that is, a model to input to the residuals to see if any essential unmodeled dynamics are left,

See Also

compare, idgrey, idarx, idpoly, idss, pem

References

Ljung (1999), Section 16.6.


  resample roe