function recog=listPersonRr(speakerSet, confusionMatrix) fprintf('Recognition rate for each person:\n'); recog=zeros(length(speakerSet),1); for i=1:length(speakerSet) recog(i)=confusionMatrix(i,i)/sum(confusionMatrix(i,:)); end [junk, index]=sort(recog); for i=1:length(index) fprintf('\t%s ===> %.2f%%\n', speakerSet(index(i)).name, recog(index(i))*100); end