m-sequence generation program using a search algorithm

版本 1.0.0.0 (1.9 KB) 作者: Giedrius Buracas
Generates maximum length sequences (m-sequences) of length a^b-1, where a is any prime number <=31
1.8K 次下载
更新时间 2010/3/31

查看许可证

Maximum length sequence assuming distinct
values = baseVal^powerVal-1

[ms]=mseqSearch(powerVal,baseVal)

OUTPUT:
ms: generated maximum length sequence, of length
basisVal^powerVal-1 such that all values occur
with equal frequency=basisVal except zero,
which occurs basisVal-1 times

INPUT:
baseVal: any prime number up to 31
powerVal: an integer
NB: the algorithm is performing search in m-sequence
register space so the calculation time grows with
baseVal and powerVal
Tested on Matlab 7.9.0 (R2009b)

(C) Written by Giedrius T. Buracas, SNL-B, Salk Institute
and Center for Functional MRI, UCSD

引用格式

Giedrius Buracas (2026). m-sequence generation program using a search algorithm (https://ww2.mathworks.cn/matlabcentral/fileexchange/27133-m-sequence-generation-program-using-a-search-algorithm), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 MATLAB Coder 的更多信息
版本 已发布 发行说明
1.0.0.0