Discrete

Hold Block

Sample-and-hold block. Zero-order hold (ZOH) holds the last sampled value. First-order hold (FOH) linearly interpolates between samples.

Open Hold in BlockWerk →

# Hold Block

Description

Sample-and-hold block that samples the input at regular intervals and holds or interpolates the value between samples.

Mathematical Model

Zero-Order Hold (ZOH):

y(t) = u(t_k)  for t_k ≤ t < t_{k+1}

First-Order Hold (FOH):

y(t) = u(t_k) + (u(t_k) - u(t_{k-1}))/T · (t - t_k)  for t_k ≤ t < t_{k+1}

where t_k = k · T and T is the sample time.

Parameters

mode

sampleTime

Interval between samples (seconds). The block samples the input at multiples of this interval.

Remarks

See Also