goldcode_seq_gen

Version 1.0.0.0 (2.55 KB) by Thang
Gold code generation can sometimes be confusing and hopefully this m-file %will be helpful. The m-fi
376 Downloads
Updated 6 Jan 2014

View License

%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 (2025). goldcode_seq_gen (https://www.mathworks.com/matlabcentral/fileexchange/44954-goldcode_seq_gen), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Startup and Shutdown in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0