⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wrapind.m

📁 fading 在无线中的应用
💻 M
字号:
function indo = wrapind(indi, siz)% DESCRIPTION indo = wrapind(indi, siz)%  Wraps or folds indo back to the range%  1:size in a cyclic fashion.%  wrapind([-1 0 1 2 3 4], 3) => [2 3 1 2 3 1]%  Both input arguments are rounded before usage.% INPUT %  indi -- Any real matrix of any size.%  siz --  A scalar value not exceeded of the output. It must be >=0.5.% OUTPUT%  indo -- the folded version of indo. Has the same size as indi% TRY%  wrapind([-1 0 1 2 3 4], 3)% SEE ALSO%  mod, floor, round, ceil% by Magnus Almgren 951104indo = round(indi) - floor(round(indi-1) ./ round(siz)) .* round(siz);

⌨️ 快捷键说明

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