wrap2.m.txt

来自「常用的编码程序 数模转换代吗 电路应用设计 C SourceCode」· 文本 代码 · 共 17 行

TXT
17
字号
% wrap2.m - circular wrapping of delay line buffer%% q = wrap2(D, q)%% q = 0, 1, ..., D = circular index pointing to w(q+1)% based on wrap2.cfunction q = wrap2(D, q)if q > D,       q = q - (D+1);              % if q=D+1, it wraps to q=0endif q < 0,       q = q + (D+1);              % if q=-1, it wraps to q=Dend

⌨️ 快捷键说明

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