Contenuto principale

gfrepcov

R2026b

Convert exponent format polynomial to standard binary format polynomial

Description

Q = gfrepcov(P) converts exponent format polynomial to standard binary format polynomial. For more information, see Polynomial Representations.

example

Examples

collapse all

This example shows how to convert the exponent format representation of the polynomial 1+x2+x5 to the standard binary coefficient format.

polystandard = gfrepcov([0 2 5])
polystandard = 1×6

     1     0     1     0     0     1

The result [1 0 1 0 0 1] represents the polynomial 1+x2+x5 in standard binary coefficient format, where each position corresponds to the coefficient for x0, x1, x2, x3, x4, x5 respectively.

Input Arguments

collapse all

Exponent format polynomial, specified as a row vector of distinct nonnegative integers where at least one entry must exceed 1.

Data Types: double

Output Arguments

collapse all

Standard binary coefficient format polynomial, returned as a row vector of 0s and 1s.

Data Types: double

More About

collapse all

Version History

Introduced before R2006a