| Model Predictive Control Toolbox | ![]() |
Determines the type of a matrix and returns information about the matrix.
Syntax:
mpcinfo(mat)
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.
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:
varying: 30 pts 2 rows 2 cols
See Also
mod, step, mod2frsp, varying format
![]() | mpccon | mpcsim | ![]() |