Control whether discrete states can change data type
mutable = isDiscreteStateSpecificationMutableImpl(obj)
returns whether discrete states can change data type when the object is in use. If this method returns
mutable
= isDiscreteStateSpecificationMutableImpl(obj
)false
, the discrete state must maintain the same data type while the object is in use.
You must set Access = protected
for this method.
Restrict changes to the data type of discrete states by adding the
isDiscreteStateSpecificationMutableImpl
method and returning false
. By adding
this method, users of the System object cannot change the data type of discrete states while the System object is
in use.
function flag = isDiscreteStateSpecificationMutableImpl(obj) flag = false; end
getDiscreteStateImpl
| getDiscreteStateSpecificationImpl
| isTunablePropertyDataTypeMutableImpl