I am new to matlab and don't know how to use libsvm. Is there any sample code for classifying some data (with 2 features) with a SVM and then visualize the result? How about with kernel (RBF, Polynomial, and Sigmoid )? I saw that readme file in libsvm package, but I could not make a head or tail of it would you please give an example of classification of 2 classes using Support Vector Machines (SVM) in matlab something like:
Attribute_1 Attribute_2 Class
170 66 -1
160 50 -1
170 63 -1
173 61 -1
168 58 -1
184 88 +1
189 94 +1
185 88 +1
Any help would be extremely appreciated.
In libsvm package, in the file matlab/README, you can find the following examples: