📄 gray2bi.m
字号:
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: adrian@ubicom.tudelft.nl %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -