to rename svmtrain to libsvmtrain to avoid shaddowing original matlab's svmtrain: rename svmtrain.c file to libsvmtrain.c in make.m also change libsvmtrain and libsvmpredict in mex file call.rename libsvmpredict.c file to libsvmpredict.c >> cd bin >> edit mexopts.sh >> edit egnopts.sh >> edit matopts.sh $ /Applications/MATLAB_R2013a.app/bin/matlab -nodisplay // typedef char16_t CHAR16_T; To avoid this edit the make file of libsvm and add -Dchar16_t=uint16_t option to all mex calls. link Addpath libsvm-3.21/matlab/ before calling After testing you get (n choose 2) probbalities or decision values. where if positive it means it belongs to class +1 and if negative it belongs to class -1 in n choose k 2-way classifiers. |