Main Content


Discrete time blocks such as Unit Delay

Use blocks from the Discrete library to model discrete systems and implement discrete algorithms.


DelayDelay input signal by fixed or variable sample periods
DifferenceCalculate change in signal over one time step
Discrete DerivativeCompute discrete-time derivative
Discrete FIR FilterModel FIR filters
Discrete FilterModel Infinite Impulse Response (IIR) filters
Discrete PID ControllerDiscrete-time or continuous-time PID controller
Discrete PID Controller (2DOF)Discrete-time or continuous-time two-degree-of-freedom PID controller
Discrete State-SpaceImplement discrete state-space system
Discrete Transfer FcnImplement discrete transfer function
Discrete Zero-PoleModel system defined by zeros and poles of discrete transfer function
Discrete-Time IntegratorPerform discrete-time integration or accumulation of signal
First-Order Hold (Obsolete)Implement first-order sample-and-hold
MemoryOutput input from previous time step
Propagation DelayModel loop delay, latency, pulse delay (Since R2022b)
Resettable DelayDelay input signal by variable sample period and reset with external signal
Tapped DelayDelay scalar signal multiple sample periods and output all delayed versions
Transfer Fcn First OrderImplement discrete-time first order transfer function
Transfer Fcn Lead or LagImplement discrete-time lead or lag compensator
Transfer Fcn Real ZeroImplement discrete-time transfer function that has real zero and no pole
Unit DelayDelay signal one sample period
Variable Integer DelayDelay input signal by variable sample period
Zero-Order HoldImplement zero-order hold sample period