function decodePerformance = svm_class_performance(svmlabel,svmdata,svmopts)
addpath 'libsvm-mat-2.88-1';

svmmodel = svmtrain(svmlabel,svmdata,svmopts);
classperformance = [];
for class = unique(svmlabel)';

    filterindex = find(class == svmlabel);
    testing_label = svmlabel(filterindex);
    testing_data  = svmdata(filterindex);
    [plabel accuracy dvalue] = svmpredict(testing_label,testing_data,svmmodel,'');

    classperformance = [classperformance accuracy(1)];
end
decodePerformance = [decodePerformance; classperformance];
end