4.8

4.8 | 5 ratings Rate this file 48 downloads (last 30 days) File Size: 904 Bytes File ID: #12542

Galois Field Array to Decimal Array Conversion

by Murad Qahwash

 

05 Oct 2006 (Updated 05 Oct 2006)

No BSD License  

convert fg array to decimal numbers

Download Now | Watch this File

File Information
Description

This code converts a Galois Field array created using GF(2^m) for a given primitive polynomial into a decimal array that can be used within typical .m file coding.
Example:
gfArray=gf([0:31],5,37);
DecArray=gf2dec(gfArray,5,37)

Required Products Communications Toolbox
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
22 Oct 2006 William Teoh

I can't find function of gf2dec in Matlab 7.0

13 Dec 2006 Emad Alsusa

Many thanks to the author of this function. Emad

18 Jan 2007 Fahad Syed

Try to use gfArray.x

09 Jul 2007 peng hong  
24 Dec 2007 hifzallah sakran  
15 Feb 2008 Maurice Stassen

You could add a "break"-statement after the match is found and assigned to the output vector. This will stop the inner loop from maken useless loops.

21 Jun 2009 Mohammad Hasan

I tried to run the script by matlab 2006 but i get an error like this
Error in ==> gf2dec at 18
GFInput = GFInput(:)'; 1382716070116605500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000orce a row vector

02 Jul 2009 Sandya Rondla

Really helpful.. thank you

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
coding theory Murad Qahwash 22 Oct 2008 08:42:45
information theory Murad Qahwash 22 Oct 2008 08:42:45
gf Murad Qahwash 22 Oct 2008 08:42:45
galois field Murad Qahwash 22 Oct 2008 08:42:45
mfile Murad Qahwash 22 Oct 2008 08:42:45
decimal Murad Qahwash 22 Oct 2008 08:42:45
m Murad Qahwash 22 Oct 2008 08:42:45
reed solomon Murad Qahwash 22 Oct 2008 08:42:45
gf Grace Woo 13 Jul 2009 18:10:56
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com