Polynomial Evaluation
Calculation of the polynomial.
blockType: PolynomialEvaluation
Path in the library:
|
Description
Block Polynomial Evaluation applies a polynomial function to the input signal on the In port. The polynomial is defined as a vector of real coefficients in descending order of degree.
When the Use constant coefficients checkbox is checked, the polynomial expression is set in the Constant coefficients parameter. If the Use constant coefficients checkbox is not checked, the variable polynomial expression is set by entering the Coefficients port. In both cases, the polynomial is given as a vector of real or complex coefficients in descending exponential order.
The table below shows examples of how the block works for various specified coefficient vectors.
| Vector of coefficients | The equivalent polynomial |
|---|---|
|
|
|
|
|
|
Each element of the vector or matrix entering the In port is processed independently, and the output size is equal to the input size.
Ports
Input
#
In
—
Input signal
vector | the matrix
Details
The input signal to which the block applies the polynomial function, specified as a vector or matrix.
| Data types |
|
| Complex numbers support |
Yes |
#
Coeffs
—
coefficients of the polynomial
vector
Details
The coefficients of the polynomial in descending order of degree, given as a vector.
Dependencies
To use this port, uncheck the box Use constant coefficients.
| Data types |
|
| Complex numbers support |
Yes |
Output
#
Out
—
Output signal
vector | the matrix
Details
The result of applying a polynomial function, returned as a vector or matrix of the same size and complexity as the input signal.
| Data types |
|
| Complex numbers support |
Yes |
Parameters
Main
#
Use constant coefficients —
use constant coefficients
Logical
Details
Check the box to use the parameter Constant coefficients and disable the Coeffs input port.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |
#
Constant coefficients —
coefficients of the polynomial
Scalar / array of real and/or complex numbers
Details
The vector of coefficients of the polynomial in descending order of degree.
Dependencies
To use this port, check the box Use constant coefficients.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |