I want to use matlab toolbox to do feature selection. there is one good function there called sequentialfs that does a good job. However, I could not integrate it with LibSVM function to perform features selection. It works fine with KnnClassify, can somebody help me please. here is the code for KnnClassify:
fun1 = @(XT,yT,Xt,yt)...
(sum((yt ~= knnclassify(Xt,XT,yT,5))));
[fs,history] = sequentialfs(fun1,data,label,'cv',c,'options',opts,'direction','forward');