gray2bi.m
来自「Simulation of Wimax network」· M 代码 · 共 20 行
M
20 行
function b = gray2bi( g )%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% GRAY2BI converts Gray encoded sequence into the binary %%% sequence. It is assumed that the most significant bit is %%% the left hand side bit. %%% %%% Comments and suggestions to: batlles@gmail.com %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % copy the msb: b(:,1) = g(:,1); for i = 2:size(g,2), b(:,i) = xor( b(:,i-1), g(:,i) ); endreturn;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?