Implement first-order sample-and-hold
Simulink / Discrete
The First-Order Hold block implements a first-order sample-and-hold that operates at the specified sampling interval. This block has little value in practical applications and is included primarily for academic purposes.
This figure compares the output from a Sine Wave block and a First-Order Hold block.
Port_1— Input signal
Input signal, specified as a scalar, vector, or matrix.
Port_1— First-order sample-and-hold
First-order sample and hold applied to the input signal.
Not recommended for production code. Relates to resource limits and restrictions on speed and memory often found in embedded systems. Generated code can contain dynamic allocation and freeing of memory, recursion, additional memory overhead, and widely-varying execution times. While the code is functionally valid and generally acceptable in resource-rich environments, smaller embedded targets often cannot support such code. Usually, blocks evolve toward being suitable for production code. Thus, blocks suitable for production code remain suitable.