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

📄 encode.m

📁 Digital communication labs,
💻 M
字号:
function [encoded,received]=encode(G,n,information_bits1)

encoded1=information_bits1*G;    % calculating the encoded bits by multiplying message with the G Matrix

for i=1:n;                        % this suff is for the XOR of product of above bits
    if rem(encoded1(1,i),2)==0
        encoded1(1,i)=0;
    else encoded1(1,i)=1;
    end 
end

encoded=encoded1;  % ENCODED BITS

⌨️ 快捷键说明

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