Specify format for B and F polynomials of multi-input polynomial model
converts
the modelOut
= setPolyFormat(modelIn
,’double’)B
and F
polynomials of a
multi-input polynomial model, modelIn
, to double
matrices.
By default, the B
and F
polynomials
of an idpoly
model are cell
arrays. For MATLAB® scripts written before R2012a, convert the
cell arrays to double matrices for backward compatibility using this
syntax. For example:
model = arx(data,[3 2 2 1 1]);
model = setPolyFormat(model,'double');
converts
the modelOut
= setPolyFormat(modelIn
,’cell’)B
and F
polynomials of modelIn
to
cell arrays.
MATLAB data files saved before R2012a store idpoly
models
with their B
and F
polynomials
represented as double matrices. If these models were previously set
to operate in backward-compatibility mode, they are not converted
to use cell arrays when loaded. Convert these models to use cell arrays
using this syntax. For example:
load polyData.mat model; model = setPolyFormat(model,'cell');
To verify the current format of the B
and F
polynomials
for a given idpoly
model, enter:
class(model.B)
If the model uses double matrices, the displayed result is:
ans = double
Otherwise, for cell arrays, the result is:
ans = cell