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

📄 invconvenc.m

📁 The code includes the implementation of inverse convolutional code and testing of it.
💻 M
字号:
function [outState out] = invConvenc(in, inState)
state0 = de2bi(inState(1),5);
state1 = de2bi(inState(2),5);
code1 = [state1(2:end) in(2:2:end)];
code0 = [state0(2:end) in(1:2:end)]; 
for cnt =1:length(in)/2
    temp = code1(cnt+4:-1:cnt);
    out(cnt) = xor(mod(sum(code0(cnt+4:-1:cnt)),2), xor(temp(3), temp(5)));    
end
outState(2) = bi2de(temp,'left-msb');
outState(1) = bi2de(code0(cnt+4:-1:cnt),'left-msb');
end

⌨️ 快捷键说明

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