MATLAB: Can anybody tell me how to generate confusion matrix in support vector machine

libsvmmachine learningsupport vector machinesvm

can anybody tell me how to generate confusion matrix in support vector machine? If somebody want explanation about confusion matrix then it is actually matrix which contain percent values of classification of correct classes and miscalculated classes.Like suppose I have 10 class classification and i give some input so that test values will be checked and some value will be predicted like actually and correct value in one class and wrongly predicted value in some other classes.like 80% comes in one class and rest 10 percent class 2 ,5%class 3 and 5% in class 4….like this.I want to show it in matrix form?Anybody know this how to do?

Best Answer

There is a confusionmat() command.