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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.