Model Predictive Control Toolbox | ![]() |
Writes input and output data matrices for a multi-input single-output system such that they can be used in regression routines mlr
and pls
for determining impulse response coefficients.
Syntax
Description
x
is the input data of dimension N by nu where N is number of data points and nu is number of inputs. y
is the output of dimension N by 1. n
is number of impulse response coefficients for all inputs. x
is rearranged to produce xreg
of dimension (N - n - 1) by n * nu while yreg
is produced by deleting the first n rows of y. This operation is illustrated as follows:
A single sampling delay is assumed for all inputs. y
must be a column vector, i.e., only one output can be specified.
Example
See mlr
and plsr
for examples of the use of this function.
![]() | validmod |