?? g_func.m
字號:
function [next_state,out_put]=G_func(current_state,data_in,K,m)
% this function realize the G-function
%currentstate=deci2change(current_state,K,m);
%nextstate=[data_in,currentstate(1:K-1)];
%next_state=change2deci(nextstate,m);
%out=[data_in,currentstate];
%out_put=change2deci(out,m);
currentstate=deci2change(current_state,K,m);
middle=data_in;
for i=1:K
middle=middle+currentstate(i);
end
middle=rem(middle,m);
nextstate=[middle,currentstate(1:K-1)];
next_state=change2deci(nextstate,m);
out=[middle,currentstate];
out_put=change2deci(out,m);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -