FUNCTION REFERENCE

setEstimator

Set MPC observer gains or choose default or custom state estimation.

Set MPC observer gains or choose default or custom state estimation.

Syntax

setEstimator(c,L,M) | setEstimator(c,'default') | setEstimator(c,'custom')

Empty L defaults to A*M; omitted or empty M defaults to zero. Custom mode suppresses Kalman design. Actual controller model, scaling or weight changes restore default estimation. Reassigning unchanged settings, bounds or names preserves supplied/custom estimation.

Example

c=mpc(ss(0.8,0.2,1,0,0.1)); setEstimator(c,[0.1;0.2],[0.3;0.4]); [L,M]=getEstimator(c)

Differences from MATLAB: controllers have value semantics. A statement updates its named controller argument; c=setEstimator(c,...) also returns the updated controller. Model dimensions and finite gains are validated; observer stability of supplied gains is the caller's responsibility.

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