Discrete State

A discrete state variable is a storage element. It can be used to keep a variable value from one calculation step to the next, e.g. the value of a counter. Discrete state variables are equivalent to the variables in discrete classes or modules. Discrete state variables cannot be used by the differential operator ddt.