Sample and Hold
R2026bSample and hold input signal
Libraries:
DSP System Toolbox /
Signal Operations
DSP System Toolbox HDL Support /
Signal Operations
Description
The Sample and Hold block acquires the input at the signal port
whenever it receives a trigger event at the trigger port (marked by
). The block then holds the output at the acquired input value until
the next triggering event occurs.
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.
"dspsigops/Sample and Hold"
"dsphdlsupportsigops/Sample and Hold"
Example: add_block("dspsigops/Sample and Hold","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006a
