Class: matlab.System
Discrete state property values
s = getDiscreteStateImpl(obj)
s = getDiscreteStateImpl(obj)
returns a struct s
of internal state value properties, which have the DiscreteState
attribute. The field names of the struct are the object’s DiscreteState
property names. To restrict or change the values returned by
getDiscreteState
method, you can override this getDiscreteStateImpl
method.
getDiscreteStateImpl
is called by the setup
method. For details, see
You must set Access = protected
for this method.
You cannot modify any properties in this method.