Main Content

d2dOptions

Create option set for discrete-time resampling

Syntax

opts= d2dOptions
opts= d2dOptions('OptionName',OptionValue)

Description

opts= d2dOptionsreturns the default options ford2d.

opts= d2dOptions('OptionName',OptionValue)accepts one or more comma-separated name-value pairs that specify options for thed2dcommand. SpecifyOptionNameinside single quotes.

This table summarizes the options that thed2dcommand supports.

Input Arguments

Name-Value Arguments

Method

Discretization method, specified as one of the following values:

'zoh'

Zero-order hold, whered2dassumes that the control inputs are piecewise constant over the sample timeTs.

'tustin'

Bilinear (Tustin) approximation. By default,d2dresamples with no prewarp. To include prewarp, use thePrewarpFrequencyoption.

For information about the algorithms for eachd2dconversion method, seeContinuous-Discrete Conversion Methods.

Default:'zoh'

PrewarpFrequency

Prewarp frequency for'tustin'method, specified inrad/TimeUnit, whereTimeUnitis the time units, specified in theTimeUnitproperty, of the resampled system. Takes positive scalar values. The prewarp frequency must be smaller than the Nyquist frequency before and after resampling. A value of 0 corresponds to the standard'tustin'method without prewarp.

Default:0

Examples

collapse all

Create the following discrete-time transfer function with sample time 0.1 seconds.

H ( z ) = z + 1 z 2 + z + 1

h1 = tf([1 1],[1 1 1],0.1);

Specify the discretization method as bilinear Tustin method with a prewarping frequency of 20 rad/seconds.

opts = d2dOptions('Method','tustin','PrewarpFrequency',20);

Resample the discrete-time model using the specified options.

h2 = d2d(h1,0.05,opts);

You can use the option setoptsto resample additional models using the same options.

See Also

Introduced in R2012a