Detect Change
R2026bDetect change in signal value
Libraries:
Simulink /
Logic and Bit Operations
Description
The Detect Change block determines if an input signal does not equal its previous value. The initial condition determines the initial value of the previous input U/z.
This block supports only fixed-step discrete sample times.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/Logic and Bit Operations/Detect Change"
Example: add_block("simulink/Logic and Bit Operations/Detect Change","myModel/myBlock",MakeNameUnique="on")

