Description: Gold code sequence generator
Run from editor Debug (F5)
JC 4/25/09
Gold code generation can sometimes be confusing and hopefully this m-file
will be helpful. The m-file uses two preferred pairs of m-sequences (length 2^n-1)
chips long where n=5 with length 31. The 33 gold codes
(two original m-sequences plus 2^n-1 gold codes) produced in a 31x33 matrix
here (with n=5) are probably not to useful for multiple access situations (CDMA)
but is used here to provide a model for learning. The preferred pair used
here is 52 and 5432 or 45 and 75 octal. Other preferred pairs can include values
such as 53 5321, 5431, and 5421. The m-file will also check the cross-correlation
values between any two codes in the matrix and should be three valued (-9,-1,7). The
autocorrelation of a Gold code can also be checked. Some, not all, of the
Gold codes in the matrix are balanced (16 1 s and 15 -1 s).
To Search:
File list (Check if you may need any files):
goldcode_seq_gen.m