set - Set values for properties of a System object - MATLAB (original) (raw)
Main Content
Set values for properties of a System object
Syntax
Description
set([obj](#mw%5F26165ca1-b70b-43aa-913b-2e3f1ade3e13),[property](#mw%5F08be38bd-7f28-455b-93a1-8de0f640800d),[value](#mw%5Fee24c5b8-ddef-4988-b8f5-83f48d932ece))
sets the values of specified properties of a System objectâ„¢. You can set values of multiple properties by specifying them as name value pairs.
Examples
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
.
Use set to set the properties UseIncrement
andUseWrapValue
of obj
.
propState = set(obj,'UseIncrement',false,'UseWrapValue','false')
Input Arguments
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