matlab.lang.OnOffSwitchState class
Package:matlab.lang
Represent on and off states with logical values
Description
matlab.lang.OnOffSwitchState
是从logical
class. Use this class to specify the data type of properties that accept values of'on'
和'off'
和逻辑真的
,false
,1
, or0
.
Use this class to constrain property values to any of these values:
Class | Logical True | Logical False |
---|---|---|
Character vector |
|
|
String scalar |
|
|
Logical |
|
|
Logical and numeric |
|
|
Enumeration member |
|
|
BecauseOnOffSwitchState
来源于logical
class, you can use these enumeration members in logical expressions.
枚举成员
off |
Logical false |
上 |
Logical true |