hasChanged
Detect data change in test step
Syntax
Description
returns tf = hasChanged(u)1 (true) if the value of
u at the beginning of the current time step is different from the
value of u at the beginning of the previous time step. Otherwise, the
operator returns 0 (false).
Examples
Tips
hasChanged statements can be used in the Test Sequence
and Test Assessment blocks and in Stateflow® charts.
Version History
Introduced in R2015a