tf = isActive(stateOp)
returns logical 1 (true) if
stateOp is the operating point for a state that is active. Otherwise,
the function returns logical 0 (false).
ans =
State: "gear_state" (handle) (active)
Path: sf_car/shift_logic/gear_state
Contains:
+ first "State (OR)" (active)
+ fourth "State (OR)"
+ second "State (OR)"
+ third "State (OR)"
Highlight the states that are active in the chart at t = 3.
highlightActiveStates(op)
Change the substate activity in the state gear_state to reflect a
change in gear.
setActive(op.gear_state.second)
Verify that the substate second in the state
gear_state is active in the modified operating
point.
isActive(op.gear_state.second)
ans =
logical
1
Remove the highlighting of active states in the Stateflow® Editor.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.