Model Predictive Control Toolbox    
plotall

Plots outputs and manipulated variables from a simulation, all on one "page."

Syntax

Description
Input variables y and u are matrices of outputs and manipulated variables, respectively. Each row represents a sample at a particular time. Each column shows how a particular output (or manipulated) variable changes with time.

Input variable t is optional. If you supply it as a scalar, plotall interprets is as the sampling period, and calculates the time axis for the plots accordingly. It can also be a column vector, in which case it must have the same number of rows as y and u and is interpreted as the times at which the samples of y and u were taken. If you do not supply t, plotall uses a sampling period of 1 by default.

plotall plots all the outputs on a single graph. If there are multiple outputs that have very different numerical scales, this may be unsatisfactory. In that case, use ploteach.

plotall plots all the manipulated variables in "stairstep" form (i.e., assuming a zero-order hold) on a single graph. Again, ploteach may be the better choice if scales are very different.

Example output: (mpccon example)

See Also
ploteach, plotstep, plotfrsp



paramod ploteach