Mercurial > hg > ishara
view general/arrutils/tween.m @ 4:e44f49929e56
Adding reorganised general toolbox, now in several subdirectories.
author | samer |
---|---|
date | Sat, 12 Jan 2013 19:21:22 +0000 |
parents | |
children |
line wrap: on
line source
function I=tween(a,b) % tween - all indices in a given range (like interval to set) % % tween :: interger, integer -> [[N]->integer]. % tween :: [[2]->interger] -> [[N]->integer]. % % tween([A,B])=tween(A,B). if nargin<2, b=a(2); a=a(1); end if b>=a, I=a:b; else I=a:-1:b; end