spreading.m

来自「Woven码在TD-SCDMA中的应用仿真程序」· M 代码 · 共 13 行

M
13
字号
function chips=spreading( sym ,id)

    temp = zeros(44,16);
    chips = zeros(1,864);
    temp = sym * ovsf(id);%.*(ones(44,1)*scramble);
    for idx = 1:22
        chips((idx-1)*16+1:idx*16) = temp(idx,:);
    end
    for idx = 23:44
        chips((idx-1)*16+145:idx*16+144) = temp(idx,:);
    end

    return;

⌨️ 快捷键说明

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