Method of mdss.
Convert a discrete-time mdss model to continuous
time.
Source: src/model/@mdss/d2c.m
sysc = d2c(sysd)d2c continualizes the discrete-time model
sysd (which must have timeStepSize > 0).
The sample time is taken from the model itself, so no
Ts argument is passed. The state prediction
is replaced by a finite-difference expression in the state derivative,
realised by adding an auxiliary variable and equation per state and
eliminating what can be removed via algebraicElimination.
The result carries timeStepSize = 0.
d2c uses the one-step forward-Euler relation, so it
inverts a matching c2d discretization.
| Argument | Description |
|---|---|
sysd |
Discrete-time mdss model
(timeStepSize > 0). |
| Output | Description |
|---|---|
sysc |
Continuous-time mdss model
(timeStepSize = 0), with the one-step Euler prediction
replaced by the state derivative and eliminable auxiliary equations
removed. |
sysc = stringParser.symbolicToMdss(["xp1 = x2"; ...
"xp2 = -x1 - 0.5*x2"], 0);
sysd = c2d(sysc, 0.1); % discretize
sysc2 = d2c(sysd); % back to continuous time (sample time from the model)MyToolbox Documentation | Generated automatically by CI/CD pipeline