nextrow.m

来自「一些奇偶校验矩阵的构造-matlab 消除四环」· M 代码 · 共 15 行

M
15
字号
% function nextRow(tooLong, M)
%   Prasanna Sethuraman, March 2004

function rowNew = nextRow(thisRow, tooLong, MAXTOOLONG, M)

if tooLong > MAXTOOLONG
    rowNew = thisRow + 1;
    if rowNew > M
        rowNew = 1;
    end;
    % tooLong
else
    rowNew = floor(rand*M)+1;
end;    

⌨️ 快捷键说明

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