| Contents | Index |
opts = c2dOptions
opts = c2dOptions('OptionName', OptionValue)
opts = c2dOptions returns the default options for c2d.
opts = c2dOptions('OptionName', OptionValue) accepts one or more comma-separated name/value pairs that specify options for the c2d command. Specify OptionName inside single quotes.
'Method' |
Discretization method, specified as one of the following values:
Default: 'zoh' | ||||||||||
'PrewarpFrequency' |
Prewarp frequency for 'tustin' method, specified in rad/TimeUnit, where TimeUnit is the time units, specified in the TimeUnit property, of the discretized system. Takes positive scalar values. A value of 0 corresponds to the standard 'tustin' method without prewarp. Default: 0 | ||||||||||
'FractDelayApproxOrder' |
Maximum order of the Thiran filter used to approximate fractional delays in the 'tustin' and 'matched' methods. Takes integer values. A value of 0 means that c2d rounds fractional delays to the nearest integer multiple of the sample time. Default: 0 |
Discretize two models using identical discretization options.
% generate two arbitrary continuous-time state-space models sys1 = rss(3, 2, 2); sys2 = rss(4, 4, 1);
Use c2dOptions to create a set of discretization options.
opt = c2dOptions('Method', 'tustin', 'PrewarpFrequency', 3.4);Then, discretize both models using the option set.
dsys1 = c2d(sys1, 0.1, opt); % 0.1s sampling time dsys2 = c2d(sys2, 0.2, opt); % 0.2s sampling time
The c2dOptions option set does not include the sampling time Ts. You can use the same discretization options to discretize systems using a different sampling time.
[1] Franklin, G.F., Powell, D.J., and Workman, M.L., Digital Control of Dynamic Systems (3rd Edition), Prentice Hall, 1997.

Learn more about resources for designing, testing, and implementing control systems.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |