d2d
Change sampling time of an MPC controller
Description
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