Signal Sample and Hold
R2026bDiscrete-time or Continuous-time sample and hold input signal
Libraries:
Simscape /
Electrical /
Control /
General Control
Description
The Signal Sample and Hold block implements a signal sample and hold in either discrete or continuous time.
When input S is true, output
y is equal to input u. When input
S is false, the block holds the output until
S becomes true again.

Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"ee_sl_lib/General Control/Signal Sample and Hold"
Example: add_block("ee_sl_lib/General Control/Signal Sample and Hold","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2018b
