mseq.m

来自「Symbol Timing Tracking Using Early-Late 」· M 代码 · 共 18 行

M
18
字号
function z = mseq(s,h,j)
   for (i=1:j)
        % AND s and h
        y = bitand(s,h);
        % Get bits 3 and 1
        a = bitget(y,3);
        b = bitget(y,1);
        % XOR bits a and b
        x(i) = bitxor(a,b);
        % Create the new state vector

        s = bitset(s,5,x(i));
        if (x(i)==0)
        x(i) = -1;
        end;
   end
   
   z = x;

⌨️ 快捷键说明

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