Mu Analysis and Synthesis Toolbox    
samhld

Create a sample-hold approximation of a continuous system

Syntax

Description
samhld applies a sample-hold to the input of the continuous-time systems sys, and samples the output, to produce a discrete-time system, discout. The sampling time is the same at the input and output, and is specified by T.

Examples
Construct the system sys via the nd2sys command and verify that all of its poles are in the closed left-half plane. Perform a sample hold of the system for a 200 Hz sample rate. All the poles for the discretized system, discout, are within the unit disk.

Algorithm
Suppose that the continuous-time system has state-space representation

If u(t) is held constant over the interval [kT,(k + 1)T], then over that interval, the state evolution is governed by the differential equation

which captures the behavior of the continuous-time system, over one sample period, while the input u(t) is held constant.

Let . Define


as . Then W appears as

Define Adisc := W11, and Bdisc := W12, and define the discretized system as

See Also
exp, expm, tustin



rifd scliv