Skip to Main Content Skip to Search
Product Documentation

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

Syntax

model= setPolyFormat(model, 'cell')
model= setPolyFormat(model, 'double')

Description

model= setPolyFormat(model, 'cell') converts the B and F polynomials of a multi-input polynomial model, model, from double matrices to cell arrays. Each cell array has Nu-elements of double vectors, where Nu is the number of inputs.

model= setPolyFormat(model, 'double') 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.

Tips

Examples

Convert the B and F polynomials of an estimated multi-input ARX model to cell arrays:

  1. 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.

  2. 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
  3. 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:

  1. 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.

  2. 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)
  3. Extract pole and zero information from the model using matrix syntax.

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

See Also

get | idpoly | polydata | set | tfdata

How To

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS