christopherh@1: christopherh@1: christopherh@1: function outtext = format_recall_results(results, params, algonames, songnames) christopherh@1: christopherh@1: [algorithms, songs] = size(results(:,:,1)); christopherh@1: christopherh@1: outtext = ['Recall results \nComparison ' params.comparison ... christopherh@1: '\nCardinality ' num2str(params.cardinality) ... christopherh@1: '\nInversion ' num2str(params.inversion) ... christopherh@1: '\nDictionary ' cell2list(params.dictionary, ', ') ... christopherh@1: '\nFrame rate ' num2str(params.framerate) ... christopherh@1: '\n\n Song name; ' cell2list(algonames, ';;')]; christopherh@1: christopherh@1: christopherh@1: christopherh@1: christopherh@1: for i = 1:songs christopherh@1: christopherh@1: outtext = [outtext '\n' songnames{i} ';' ]; christopherh@1: christopherh@1: for j = 1:algorithms christopherh@1: christopherh@1: outtext = [outtext num2str(results(j,i,1)) ';' num2str(results(j,i,2)) ';']; christopherh@1: christopherh@1: end christopherh@1: christopherh@1: end