annotate toolboxes/FullBNT-1.0.7/KPMtools/ind2subvTest.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 function sub = ind2subvTest(siz,index)
wolffd@0 2 %IND2SUBV Subscript vector from linear index.
wolffd@0 3 % IND2SUBV(SIZ,IND) returns a vector of the equivalent subscript values
wolffd@0 4 % corresponding to a single index into an array of size SIZ.
wolffd@0 5 % If IND is a vector, then the result is a matrix, with subscript vectors
wolffd@0 6 % as rows.
wolffd@0 7
wolffd@0 8 sub = ind2subvMinka(siz, index);
wolffd@0 9 subKPM = ind2subvKPM(siz, index);
wolffd@0 10 assert(isequal(sub, subKPM))