Skip to content

Instantly share code, notes, and snippets.

@fzliu
Created June 10, 2017 07:33
Show Gist options
  • Save fzliu/ffd1730babd8690fdda5a348158cd8e5 to your computer and use it in GitHub Desktop.
Save fzliu/ffd1730babd8690fdda5a348158cd8e5 to your computer and use it in GitHub Desktop.
Uses MATLAB to generate Kasami sequences.
seqs = [];
for n = 0:62
ks = comm.KasamiSequence('Index', n, ...
'Polynomial', [12 6 4 1 0], ...
'InitialConditions', [zeros(1, 11) 1], ...
'SamplesPerFrame',4095);
seq = step(ks);
seq = 2 * (seq - 0.5);
seqs = [seqs seq];
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment