hasChangedTo
Description
returns tf = hasChangedTo(data,value)1 (true) if the value of
data is not equal to value at the
beginning of the previous time step and is equal to value at
the beginning of the current time step. Otherwise, the operator returns
0 (false). Use this operator in the Requirements Table block.
You must specify an initial value for data. For more
information, see Define Data in Requirements Table Blocks.
Examples
Input Arguments
Tips
If the Requirements Table block writes to the specified data but does not change the value, the
hasChangedTooperator returnsfalse.
Version History
Introduced in R2022a



