Add custom regressors to nonlinear ARX model
m
= addreg(model
,regressors
)
m
= addreg(model
,regressors
,output
)
adds
custom regressors to a nonlinear ARX model by appending the m
= addreg(model
,regressors
)CustomRegressors
model
property. model
and m
are idnalrx
objects.
For single-output models, regressors
is
an object array of regressors you create using customreg
or polyreg
, or a cell array of character
vectors. For multiple-output models, regressors
is
1-by-ny
cell array of customreg
objects
or 1-by-ny
cell array of cell arrays of character
vectors. addreg
adds each element of the ny
cells
to the corresponding model
output channel.
If regressors
is a single regressor, addreg
adds
this regressor to all output channels.
adds
regressors m
= addreg(model
,regressors
,output
)regressors
to specific output
channels output
of a multiple-output model. output
is
a scalar integer or vector of integers, where each integer is the
index of a model output channel. Specify several pairs of regressors
and output
values
to add different regressor variables to the corresponding output channels.