Galois Field Array to Exponential Array Conversion
This code converts a Galois Field array created using GF(2^m) for a given primitive polynomial into the 'exponential' notation, which you can use with gfrepcov() to binary if you wish.
Uses the gf2dec() function internally.
Example usage:
>> genpoly = rsgenpoly(15,11)
genpoly = GF(2^4) array. Primitive polynomial = D^4+D+1 (19 decimal)
Array elements =
1 13 12 8 7
>> gf2exp(genpoly, 4, primpoly(4))
ans =
0 13 6 3 10
Showing this RS Polynomial is of form: X^4 + A^13*X^3 + A^6*X^2 + A^3*X + A^10, which is how you see it displayed in text books etc.
Cite As
Colin O'Flynn (2026). Galois Field Array to Exponential Array Conversion (https://www.mathworks.com/matlabcentral/fileexchange/34140-galois-field-array-to-exponential-array-conversion), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types >
- Wireless Communications > Communications Toolbox > PHY Components > Error Detection and Correction >
Tags
Acknowledgements
Inspired by: Galois Field Array to Decimal Array Conversion
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.