FUNCTION REFERENCE

resid

Residuals and their correlation tests.

Residuals and their correlation tests.

Syntax

[E, R, S] = resid(data, sys)

Syntax

[E, R, S] = resid(data, sys, M)

E is an iddata object of one-step prediction errors (zero initial conditions). R is the (M+1)-by-2-by-2 covariance array R(tau+1,i,j) = 1/N sum z_i(t+tau) z_j(t) of z = [e u] (M = 25 by default). S has Lags, AutoCorr (normalised), AutoBound = 2.5758/sqrt(N), CrossLags (-M..M), CrossCorr (e(t) with u(t-tau), normalised), CrossBound = 2.5758 sqrt(P/N) with P = sum rho_e(k) rho_u(k), and Confidence (99).

Example

d = iddata(randn(50,1),randn(50,1),1); [E,R,S] = resid(d, idpoly(1,[0 0])); S.AutoBound

Differences from MATLAB: S is a MatRust addition replacing the plot; frequency-domain residual tests are not supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.