Specify format for B and F polynomials of multi-input polynomial model for backward compatibility

* model*= setPolyFormat(

`model`

`model`

`model`

converts the B and F polynomials of a multi-input
polynomial model, * model*= setPolyFormat(

`model`

`model`

allows you to continue using double matrices
for the B and F polynomials. The model displays a message that it
is in backward compatibility mode.* model*= setPolyFormat(

`model`

Convert the `B`

and `F`

polynomials
of an estimated multi-input ARX model to cell arrays:

Estimate a 3-input ARX model.

% Load estimation data. load iddata8 % Estimate model. m = arx(z8, [3 [2 2 1] [1 1 1]]);

The software computes the

*B*and*F*polynomials and stores their values as double matrices in the`b`

and`f`

properties. Operations on the*B*and*F*polynomials, such as`m.b`

, produce an incompatibility warning.Convert the

`B`

and`F`

polynomials to cell arrays.m=setPolyFormat(m,'cell');

To verify that the

*B*and*F*polynomials are cell arrays, type`class(m.b)`

, which returns:ans = cell

Extract pole and zero information from the model using cell array syntax.

Poles1 = roots(m.f{1}); Zeros1 = roots(m.b{1});

Continue using double matrices for *B* and *F* polynomials
of an estimated multi-input ARX model:

Estimate a 3-input ARX model.

% Load estimation data. load iddata8 % Estimate model. m = arx(z8, [3 [2 2 1] [1 1 1]]);

The software computes the

*B*and*F*polynomials, and stores their values in double matrices in the`b`

and`f`

properties. Operations on the*B*and*F*polynomials, such as`m.b`

, produce an incompatibility warning.Designate the model to continue using double matrices for the

*B*and*F*polynomials for backward compatibility.m=setPolyFormat(m,'double')

The following message at the MATLAB

^{®}prompt indicates that the model is backward compatible:(model configured to operate in backward compatibility mode)

Extract pole and zero information from the model using matrix syntax.

Poles1 = roots(m.f(1,:)) Zeros1 = roots(m.b(1,:))

Was this topic helpful?