Documentation Center

  • Trial Software
  • Product Updates

validatePropertiesImpl

Class: matlab.System
Package: matlab

Validate property values

Syntax

validatePropertiesImpl(obj)

Description

validatePropertiesImpl(obj) validates interdependent or interrelated property values at the beginning of object initialization, such as checking that the dependent or related inputs are the same size.

validatePropertiesImpl is the first method called by the setup method. validatePropertiesImpl also is called before the processTunablePropertiesImpl method.

    Note:   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.

Input Arguments

obj

System object™ handle

Examples

expand all

Validate a Property

Validate that the useIncrement property is true and that the value of the increment property is greater than zero.

methods (Access=protected)
   function validatePropertiesImpl(obj)
      if obj.useIncrement && obj.increment < 0
         error('The increment value must be positive');
      end
    end
end

See Also

| |

How To

Was this topic helpful?