Skip to content

FixPt Zero-Order Hold

Implement a zero-order hold of one sample period.

Description

The FixPt Zero-Order Hold block is a masked S-function that samples and holds its input for the specified sample period.

The block accepts one input and generates one output, both of which can be scalar or vector. If the input is a vector, all elements of the vector are held for the same sample period.

The block provides a mechanism for discretizing one or more signals in time, or resampling the signal at a different rate. If your model contains multirate transitions, you must add FixPt Zero-Order Hold blocks between the fast to slow transitions where the sample rate must be set to that of the slower block. For slow to fast transitions, use the FixPt Unit Delay block.

Dialog Box Parameters

  • Sample time - The time between samples.

Characteristics

Characteristic Description
Input Port Any data type supported by the blockset
Output Port Same as the input
Direct Feedthrough Yes
Sample Time Discrete
Scalar Expansion No
States 0
Vectorized Yes