Method of mss.
Convert a discrete-time MTI system to a continuous-time MTI system.
Source: src/model/@mss/d2c.m
sysc = d2c(sysd, Ts)
sysc = d2c(sysd, Ts, method)d2c is the inverse of c2d: it reconstructs a
continuous-time model from the discrete-time explicit model
The model must be discrete (timeStepSize ~= 0),
otherwise the call errors with “The mss model is already
continuous.”
method |
Rule | Result |
|---|---|---|
"forward" (default) |
Forward Euler inverted, | mss — stays
explicit |
"backward" |
Backward Euler | mdss — implicit,
warns |
"tustin" |
Trapezoidal | mdss — implicit,
warns |
As in c2d, only forward Euler preserves explicitness;
"backward" and "tustin" convert with mss2mdss and
delegate to d2c of
the mdss class after warning about the changed return type.
In this case, if the mtiBase of sysc was the
literal base, the model base is not preserved because the
mdss class does not yet support literal base models.
Undoing
means subtracting the identity term and dividing by the sample time. As
in c2d this is done on the CPN matrices: one monomial
column per state is appended and the state parameter block becomes
,
the output block staying
:
i.e.
and
.
Signal names are carried over and the result is cleaned up with trivialReduction.
There is no TTTensor path — a
tensor-train model raises “No TT implemented Yet”.
| Argument | Description |
|---|---|
sysd |
Discrete-time mss model
(timeStepSize ~= 0). |
Ts |
Sample time that was used for the discretization,
Ts > 0. |
method |
(optional) "forward" (default),
"backward" or "tustin". |
| Output | Description |
|---|---|
msys |
Continuous-time model: an mss for
"forward", an mdss for "backward"
/ "tustin". |
sysc = rmss(3,1,1,4); % continuous-time model
sysd = c2d(sysc, 0.01); % discretize
sysr = d2c(sysd, 0.01); % reconstruct
sysr.timeStepSize = 0; % mark it continuous again (see note above)c2d · mss · msim · trivialReduction
· mss2mdss · d2c
MyToolbox Documentation | Generated automatically by CI/CD pipeline