📄 gold_sequence.m
字号:
function [gold_seq] = gold_sequence(connections1,connections2)
m_seq1 = m_sequence(connections1);
m_seq2 = m_sequence(connections2);
% cyclically shift the second sequence and add it to the first one
L = 2^length(connections1)-1;
for shift_amount = 0:L-1,
temp = [m_seq2(shift_amount+1:L) m_seq2(1:shift_amount)];
gold_seq(shift_amount+1,:) = (m_seq1+temp) - floor((m_seq1+temp)./2).*2;
% gold_seq(shift_amount+1,:) = mod(m_seq1+temp,2);
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -