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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.