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

📄 diff_enc.m

📁 the source code of Ziemer s book Digital communication. This code is related to the exercise part.
💻 M
字号:
%diff_enc(input); function to differentially encode a bit stream vector%function output = diff_enc(input)
L_in = length(input);
output = [];
for k = 1:L_in
   if k == 1
      output(k) = not(bitxor(input(k),1));
   else
      output(k) = not(bitxor(input(k),output(k-1)));
   end
end

⌨️ 快捷键说明

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