| Communications Toolbox | ![]() |
True for a primitive polynomial for a Galois field
Syntax
Description
isprimitive(a)
returns 1 if the polynomial that a represents is primitive for the Galois field GF(2m), and 0 otherwise. The input a can represent the polynomial using one of these formats:
floor(log2(a)).
a.
Examples
a = primpoly(3,'all','nodisplay'); % All primitive polys for GF(8) a = 11 13 isp1 = isprimitive(13) % 13 represents a primitive polynomial. isp1 = 1 isp2 = isprimitive(14) % 14 represents a nonprimitive polynomial. isp2 = 0
See Also
| ifft | istrellis | ![]() |