Documentation Center

  • Trial Software
  • Product Updates

Polynomial

Perform evaluation of polynomial coefficients on input values

Library

Math Operations

Description

You define a set of polynomial coefficients in the form that the MATLAB® polyval command accepts. The block evaluates P(u) at each time step for the input u. The inputs and coefficients must be real.

Data Type Support

The Polynomial block accepts real signals of type double or single. The Polynomial coefficients parameter must be of the same type as the inputs. The output data type is the same as the input data type.

For more information, see Data Types Supported by Simulink in the Simulink® documentation.

Parameters and Dialog Box

Polynomial coefficients

Specify polynomial coefficients in MATLAB polyval form. The first coefficient corresponds to xN and the remaining coefficients correspond to decreasing orders of x. The last coefficient represents the constant for the polynomial. See polyval in the MATLAB documentation for more information.

Examples

The sldemo_boilersldemo_boiler model shows how to use the Polynomial block.

In the Boiler Plant model/digital thermometer subsystem, the Polynomial block models a first-order polynomial using the coefficients [0.05 0.75]:

For more information, see the model descriptionmodel description.

Characteristics

Direct Feedthrough

Yes

Sample Time

Inherited from the driving block

Scalar Expansion

No

Dimensionalized

Yes

Multidimensionalized

No

Zero-Crossing Detection

No

Was this topic helpful?