Main Content
hasChangedFrom
Detect change in data from specified value in Requirements Table block
Since R2022a
Description
returns tf
= hasChangedFrom(data
,value
)1
(true
) if the value of
data
is equal to value
at the
beginning of the previous time step and is a different value at the beginning of the
current 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
hasChangedFrom
operator returnsfalse
.
Version History
Introduced in R2022a