FUNCTION REFERENCE

n4sid

Estimate a state-space model by subspace identification.

Estimate a state-space model by subspace identification.

Syntax

m = n4sid(data, nx)

Syntax

m = n4sid(data, 1:10)

Syntax

m = n4sid(data, nx, 'Feedthrough', tf)

Discrete idss model by PO-MOESP: RQ factorisation of the block Hankel matrices of past and future data, SVD for the observability matrix, A and C from its shift structure, then B, D and the initial state by least squares. A range picks the order at the largest singular-value gap; deterministic.

Example

u = sin((1:80)'/3); y = filter([0 1],[1 -0.5],u); m = n4sid(iddata(y,u,1),1); m.A   % 0.5

Differences from MATLAB: single-output single-input data; no disturbance model (K = 0); no weighting options.

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