Return index translation table from the whole index space Itrans = vb_index_trans(I,ix_sub) to the sub index space. 2004-05-25 Taku Yoshioka Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function Itrans = vb_index_trans(I,ix_sub) 0002 % Return index translation table from the whole index space 0003 % Itrans = vb_index_trans(I,ix_sub) 0004 % to the sub index space. 0005 % 2004-05-25 Taku Yoshioka 0006 % 0007 % Copyright (C) 2011, ATR All Rights Reserved. 0008 % License : New BSD License(see VBMEG_LICENSE.txt) 0009 0010 Itrans = zeros(I,1); 0011 Itrans(ix_sub) = 1:length(ix_sub); 0012