Mercurial > hg > mauch-mirex-2010
view _FullBNT/KPMtools/wrap.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
line wrap: on
line source
function v = wrap(u,N) % WRAP Wrap a vector of indices around a torus. % v = wrap(u,N) % % e.g., wrap([-1 0 1 2 3 4], 3) = 2 3 1 2 3 1 v = mod(u-1,N)+1;