Galois Field Array to Exponential Array Conversion
by Colin O'Flynn
08 Dec 2011
(Updated 12 Feb 2012)
Convert GF array into exponential notation (a^3, etc)
|
Watch this File
|
| File Information |
| Description |
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. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
Galois Field Array to Decimal Array Conversion
|
| MATLAB release |
MATLAB 7.5 (R2007b)
|
| Other requirements |
NB: Must also download http://www.mathworks.com/matlabcentral/fileexchange/12542-galois-field-array-to-decimal-array-conversion |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 12 Feb 2012 |
Added note you need to download gf2dec seperately |
|
Contact us at files@mathworks.com