goldcode_seq_gen

Gold code generation can sometimes be confusing and hopefully this m-file %will be helpful. The m-fi

You are now following this Submission

%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).

Cite As

Thang (2026). goldcode_seq_gen (https://www.mathworks.com/matlabcentral/fileexchange/44954-goldcode_seq_gen), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0