duration
Time during which condition is valid in Stateflow chart
Description
Note
The temporal logic operator duration is not supported in
standalone charts in MATLAB®.
Examples
Input Arguments
Tips
You can use quotation marks to enclose the keywords
'sec','msec', and'usec'. For example,duration(x > 0,'sec')is equivalent toduration(x > 0,sec).The Stateflow® chart resets the value of the
durationoperator if the conditional expressionCbecomesfalseor if the associated state becomes inactive.
Version History
Introduced in R2017a

