Main Content

set

Set values for properties of a System object

Description

set(obj,property,value) sets the values of specified properties of a System object™. You can set values of multiple properties by specifying them as name value pairs.

example

Examples

collapse all

Use set to set the properties of the specified System object.

Create a Counter object. Refer to the example in setup for the class definition of counter.

obj = Counter;

Use set to set the properties UseIncrement and UseWrapValue of obj.

propState = set(obj,'UseIncrement',false,'UseWrapValue','false')

Input Arguments

collapse all

System object handle used to access properties, states, and methods specific to the object.

Name of the property to be set.

Data Types: char | string

Value to be set for the specified property.

Version History

Introduced in R2012b