Discrete state property values
s = getDiscreteStateImpl(obj)
s = getDiscreteStateImpl(obj) returns a struct
of internal state value properties, which have the
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 is called by the
setup method. For details, see
Detailed Call Sequence (MATLAB).
You must set
Access = protected for this method.
You cannot modify any properties in this method.
obj— System object™
System object handle used to access properties, states, and methods specific to the object. If
getDiscreteStateImpl method does not use the object, you can replace this
s— State values
State values, returned as a struct.
method in your class definition file to get the discrete states of the object.
methods (Access = protected) function s = getDiscreteStateImpl(obj) end end