Main Content
hasChanged
Detect change in data since last time step in Requirements Table block
Since R2022a
Syntax
Description
returns tf
= hasChanged(data
)1
(true
) if the value of
data
at the beginning of the current time step is different
from the value of data
at the beginning of the previous time
step. Otherwise, the operator returns 0
(false
). Use this operator in the Requirements Table block.
Examples
Input Arguments
Tips
If the Requirements Table block writes to the specified data but does not change the value, the
hasChanged
operator returnsfalse
.
Version History
Introduced in R2022a