Download this file
1 2 3 4 5 6 7
function [ classSuccessRate ] = GetClassSuccessRate( classValue, label ) %GetClassSuccessRate Convert decimals to (integer) classes, get % matching %the label matrix classSuccessRate = sum(round(classValue) == round(label))/size(label,1); end