Model Predictive Control Toolbox    
ploteach

Plots outputs and manipulated variables from a simulation on separate graphs, up to four per 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. As shown above, you may supply both y and u, or omit either one of them.

Input variable t is optional. If you supply it as a scalar, ploteach 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, ploteach uses a sampling period of 1 by default.

ploteach plots the manipulated variables in "stairstep" form (i.e., assuming a zero-order hold).

Example output: (mpccon example)

See Also
plotall, plotfrsp, plotstep



plotall plotfrsp