Home > functions > brain > vb_index_trans.m

vb_index_trans

PURPOSE ^

Return index translation table from the whole index space

SYNOPSIS ^

function Itrans = vb_index_trans(I,ix_sub)

DESCRIPTION ^

 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)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005