Class: matlab.System
Validate property values of System object
validatePropertiesImpl(obj)
validatePropertiesImpl(
validates
interdependent or interrelated property values the first time the System object™ runs.obj
)
validatePropertiesImpl
is called by setup
when the
object is run for the first time and when any tunable property changes. For details, see
Detailed Call Sequence.
You must set Access = protected
for this method.
You cannot modify any properties in this method. Use the processTunedPropertiesImpl
method or setupImpl
method to modify properties.
To check if a property has changed since stepImpl
was last called, use
isChangedProperty(obj,property)
within validatePropertiesImpl
.
If your property does not depend on any other property, you can use MATLAB class property validators at the property definition. For more information, see Validate Property and Input Values.