FUNCTION REFERENCE

mpcstate

Create an MPC controller state handle with validated properties.

Create an MPC controller state handle with validated properties.

Syntax

s = mpcstate(c[,plant,disturbance,noise,lastMove,covariance])

Plant defaults to nominal X and LastMove to nominal MV values, in absolute engineering units. Disturbance (input then output) and Noise states start at zero. Covariance defaults to the steady-state a-priori covariance, or [] in custom mode. Optional [] arguments retain defaults. Copies of a state handle share property updates.

Example

c=mpc(ss(0.8,0.2,1,0,0.1)); s=mpcstate(c); s.Plant=2; s.LastMove=0.1; disp(s)

Differences from MATLAB: assign complete property vectors; indexed property edits are not supported yet. Covariance must have the total state dimension and be symmetric. Controllers use value semantics, state objects use handle semantics.

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