d2d
Change sampling time of an MPC controller
Description
Use the Model Predictive Control Toolbox™
d2d
function to change the sampling time of an MPC controller (see
mpc
for background).
To resample a generic discrete-time LTI dynamical system instead, see d2d
.
returns the controller newmpc
= d2d(mpcobj
,newTs
)newmpc
, which is identical to
mpcobj
except for the new sample time newTs
.
This is equivalent to coying mpcobj
in a new object
newmpc
and assigning a new sample using either
newmpc.Ts=newTs
or set(newmpc,'Ts',newTs)
. All
models in newmpc
are sampled or resampled when the QP matrices must be
computed, for example when sim
or mpcmove
are called.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a