

function  outtext = format_recall_results(results, params, algonames, songnames)

[algorithms, songs] = size(results(:,:,1));

outtext = ['Recall results \nComparison ' params.comparison  ...
           '\nCardinality ' num2str(params.cardinality)   ...
           '\nInversion ' num2str(params.inversion)  ...
           '\nDictionary ' cell2list(params.dictionary, ', ') ...
           '\nFrame rate ' num2str(params.framerate) ...
           '\n\n Song name; ' cell2list(algonames, ';;')];


       
           
for i = 1:songs
    
     outtext = [outtext '\n' songnames{i} ';' ];
    
    for j = 1:algorithms
        
       outtext = [outtext num2str(results(j,i,1)) ';' num2str(results(j,i,2)) ';'];
          
    end
    
end