Documentation

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

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_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 description.

Characteristics

Data Types

Double | Single

Sample Time

Inherited from driving block

Direct Feedthrough

Yes

Multidimensional Signals

No

Variable-Size Signals

No

Zero-Crossing Detection

No

Code Generation

Yes

Introduced before R2006a

Was this topic helpful?