This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Create option set for discrete-time resampling


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


opts = d2dOptions returns the default options for d2d.

opts = d2dOptions('OptionName', OptionValue) accepts one or more comma-separated name/value pairs that specify options for the d2d command. Specify OptionName inside single quotes.

This table summarizes the options that the d2d command supports.

Input Arguments

Name-Value Pair Arguments


Discretization method, specified as one of the following values:


Zero-order hold, where d2d assumes the control inputs are piecewise constant over the sample time Ts.


Bilinear (Tustin) approximation. By default, d2d resamples with no prewarp. To include prewarp, use the PrewarpFrequency option.

Default: 'zoh'


Prewarp frequency for 'tustin' method, specified in rad/TimeUnit, where TimeUnit is the time units, specified in the TimeUnit property, 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


collapse all

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

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 set opts to resample additional models using the same options.

See Also

Introduced in R2012a

Was this topic helpful?