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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.