finds redundant variables for easy removal Feb 25, 2012 Notes: this funciton checks for redundant variables and returns the index of the redundant ones so they can be removed inputs: featVect: (numDim x numSample) matrix outputs: unqIdx: unique indices
0001 % finds redundant variables for easy removal 0002 % Feb 25, 2012 0003 % Notes: this funciton checks for redundant variables and returns the index 0004 % of the redundant ones so they can be removed 0005 % 0006 % inputs: 0007 % featVect: (numDim x numSample) matrix 0008 % 0009 % outputs: 0010 % unqIdx: unique indices 0011 % 0012 0013 function unqIdx = findRedundancies( featVect ) 0014 0015 [b unqIdx ] = unique( featVect, 'first', 'rows'); 0016 unqIdx = sort( unqIdx, 'ascend');