convforhs.m
来自「gsm的物理层仿真实现」· M 代码 · 共 10 行
M
10 行
function output = convforhs(input)
g = [1 0 1 1 0 1 1;
1 1 0 0 1 0 1;
1 1 1 1 1 0 1];
len = length(input);
line1 = mod(conv(input,g(1,:)),2);
line2 = mod(conv(input,g(2,:)),2);
line3 = mod(conv(input,g(3,:)),2);
line = [line1(1:len);line2(1:len);line3(1:len)];
output = reshape(line,1,3*len);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?