Model Predictive Control Toolbox | ![]() ![]() |
Determines the type of a matrix and returns information about the matrix.
Syntax:
Description
mpcinfo
returns information about the type and size of the matrix, mat
. The information is determined from the matrix structure. The matrix types include MPC step format, MPC mod format, varying format and constant. mpcinfo
returns text output to the screen.
If the matrix is in MPC step format, the output includes the sampling time used to create the model, number of inputs, number of outputs and number of step response coefficients; it also indicates which outputs are stable and which outputs are integrating.
If the matrix is in MPC mod format, the output includes the sampling time used to create the model, number of states, number of manipulated variable inputs, number of measured disturbances, number of unmeasured disturbances, number of measured outputs and number of unmeasured outputs.
For a matrix in varying format, as formed in mod2frsp
, the number of independent variable values, and the number of rows and number of columns of each submatrix are output.
For a constant matrix, the text output consists of the number of rows and number of columns.
.mod2step
example mpcinfo(plant)
returns:
This is a matrix in MPC Step format. sampling time = 1.5 number of inputs = 3 number of outputs = 4 number of step response coefficients = 3 All outputs are stable.
.ss2mod
example mpcinfo
(pmod
)
returns:
This is a matrix in MPC Mod format.
minfo
= [2 3 1 1 1 1 0 ]
sampling time = 2
number of states = 3
number of manipulated variable inputs = 1
number of measured disturbances = 1
number of unmeasured disturbances = 1
number of measured outputs = 1
number of unmeasured outputs = 0
.mod2frsp
example mpcinfo
(eyefrsp
)
returns:
See Also
mod
, step
, mod2frsp
, varying format
![]() | mpccon | mpcsim | ![]() |