




0001 function [X,Y] = selectModes(oneTrial,indices,class,CV) 0002 0003 if ~iscell(oneTrial) 0004 error('selectModes must be applied to cella array, but it is not.'); 0005 else 0006 X = []; 0007 Y = []; 0008 0009 modespan = CV.parms.firstMode : CV.parms.firstMode + ... 0010 CV.parms.nModes - 1; 0011 for w = indices 0012 modes = oneTrial{w}(:,modespan); 0013 modes = reshape(modes,size(modes,1)*size(modes,2),1); 0014 X = [X modes]; 0015 Y = [Y class]; 0016 end 0017 end 0018 0019