Mercurial > hg > mauch-mirex-2010
annotate _FullBNT/KPMtools/ind2subvTest.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
rev | line source |
---|---|
matthiasm@8 | 1 function sub = ind2subvTest(siz,index) |
matthiasm@8 | 2 %IND2SUBV Subscript vector from linear index. |
matthiasm@8 | 3 % IND2SUBV(SIZ,IND) returns a vector of the equivalent subscript values |
matthiasm@8 | 4 % corresponding to a single index into an array of size SIZ. |
matthiasm@8 | 5 % If IND is a vector, then the result is a matrix, with subscript vectors |
matthiasm@8 | 6 % as rows. |
matthiasm@8 | 7 |
matthiasm@8 | 8 sub = ind2subvMinka(siz, index); |
matthiasm@8 | 9 subKPM = ind2subvKPM(siz, index); |
matthiasm@8 | 10 assert(isequal(sub, subKPM)) |