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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.