Stateflow | ![]() ![]() |
Getting and Setting the Properties of Objects
Once you obtain a particular object, you can access its properties directly or through the get
method. For example, you obtain the description for a State object s
with one of the following commands:
You change the properties of an object directly or through the set
method. For example, you change the description of the State object s
with one of the following commands:
s.Description = 'This is the On state.'
s.set ('Description', 'This is the On state.')
set (s, 'Description', 'This is the On state.')
![]() | Finding Objects at Different Levels of Containment | Copying Objects | ![]() |