⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 goldseq.m

📁 The source codes are from the "Simulation and software Radio for mobile communication" It contain th
💻 M
字号:
% Program 5-5
% goldseq.m
%
% The generation function of Gold sequence
%
% Programmed by M.Okita and H.Harada
%

function [gout] = goldseq(m1, m2, n)

% ****************************************************************
% m1 : M-sequence 1
% m2 : M-sequence 2
% n  : Number of output sequence(It can be omitted)
% gout : output Gold sequence
% ****************************************************************

if nargin < 3
    n = 1;
end

gout = zeros(n,length(m1));

for ii=1:n
    gout(ii,:) = xor(m1,m2);
    m2         = shift(m2,1,0);
end

%******************************** end of file ********************************

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -