Home > . > showTestRep.m

showTestRep

PURPOSE ^

%% rep = showTestRep(CV.msf)

SYNOPSIS ^

function reps = showTestRep(cv)

DESCRIPTION ^

%% rep = showTestRep(CV.msf)
%% Currently only works for windows-based representation

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function reps = showTestRep(cv)
0002 %%% rep = showTestRep(CV.msf)
0003 %%% Currently only works for windows-based representation
0004 
0005 [nTasks,nTrials] = size(cv.classes);
0006 for ttrial = 1:nTrials
0007   rep = [];
0008   parms = cv.testResults{ttrial}{1};
0009   for task = 1:nTasks
0010     bases = cv.testResults{ttrial}{4}{task};
0011     for w = 1:length(bases)
0012       m = bases{w}(:,parms.firstMode:parms.firstMode+parms.nModes-1);
0013       rep = [rep m(:)];
0014     end
0015   end
0016   reps{ttrial} = rep;
0017 end
0018 
0019 
0020 for ttrial = 1:nTrials
0021   subplot(nTrials,1,ttrial);
0022   imagesc(reps{ttrial});
0023   title(['Test Trial ' num2str(ttrial)]);
0024 end

Generated on Tue 07-Feb-2006 12:02:57 by m2html © 2003