


mat = matrixOfAllResults(cellarray) mat = matrixOfAllResults(allresults.msf.allresults);


0001 function [mat,names] = matrixOfAllResults(cellarray) 0002 % mat = matrixOfAllResults(cellarray) 0003 % mat = matrixOfAllResults(allresults.msf.allresults); 0004 0005 mat = []; 0006 0007 [r,c] = size(cellarray); 0008 for testtrial = 1:r 0009 onemat = []; 0010 for ps = 1:c 0011 [v,names] = getfields(cellarray{testtrial,ps}{1}); 0012 onemat = [onemat; testtrial v cellarray{testtrial,ps}{2}]; 0013 end 0014 mat = [mat;onemat]; 0015 end 0016 names = {'TestTrial' names{:} 'Test RMSE'}; 0017