?? diff_enc.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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -