d2d

Method of mdss.

Resample a discrete-time mdss model to a new sample time.

Source: src/model/@mdss/d2d.m

Syntax

sysd2 = d2d(sysd1, Ts)

Description

d2d resamples the discrete-time model sysd1 (which must have timeStepSize > 0) to a new sample time Ts, which must differ from the current one. As with c2d/d2c, the conversion is a one-step forward-Euler relation applied by direct manipulation of the structure and parameter matrices, followed by algebraicElimination of the removable auxiliary variables. The result carries timeStepSize = Ts.

Resampling is useful when a discretization step turns out too coarse (unstable or inaccurate) and needs to be refined without returning to continuous time.

Input arguments

Argument Description
sysd1 Discrete-time mdss model (timeStepSize > 0).
Ts New sample time, different from the current one.

Output arguments

Output Description
sysd2 Discrete-time mdss model resampled to timeStepSize = Ts, with eliminable auxiliary equations removed.

Example

sysc = stringParser.symbolicToMdss(["xp1 = x2"; ...
                                    "xp2 = -x1 - 0.5*x2"], 0);

sysd  = c2d(sysc, 0.1);    % 0.1 s step
sysd2 = d2d(sysd, 0.05);   % resample to 0.05 s

See also

c2d · d2c · mdss · msim


MyToolbox Documentation | Generated automatically by CI/CD pipeline