Powers and products of standard regressors
R
= polyreg(model
)
R
= polyreg(model
,'MaxPower',n
)
R
= polyreg(model
,'MaxPower',n
,'CrossTerm',CrossTermVal
)
creates
an array R
= polyreg(model
)R
of polynomial regressors up
to the power 2. If a model order has input u
and
output y
, na
=nb
=2,
and delay nk
=1, polynomial regressors are y(t−1)2, u(t−1)2, y(t−2)2, u(t−2)2. model
is
an idnlarx
object. You must add these regressors
to the model
by assigning the CustomRegressors
model
property
or by using addreg
.
creates
an array R
= polyreg(model
,'MaxPower',n
)R
of polynomial regressors up
to the power n
. Excludes terms of power 1
and
cross terms, such as y(t−1)*u(t−1).
creates
an array R
= polyreg(model
,'MaxPower',n
,'CrossTerm',CrossTermVal
)R
of polynomial regressors up
to the power n
and includes cross terms
(products of standards regressors) when CrossTermVal
is 'on'
.
By default, CrossTermVal
is 'off'
.