现在写一下在matlab中从安装libsvm到使用。
1,安装
系统版本:redhat 6.0
libsvm的版本:3.1. 下载地址:http://www.csie.ntu.edu.tw/~cjlin/libsvm/
matlab版本:2010b.
1) 首先将matlab当前目录设为libsvm\matlab所在目录,并且保证Makefile文件中MATLABDIR路径为matlab安装所在路径,例如:
MATLABDIR ?= /RLNK/PACKAGE/MATLAB.2010b
2)在matlab命令窗口中输入:-mex -setup
出现
Options files control which compiler to use, the compiler and link command
options, and the runtime libraries to link against.
Using the 'mex -setup' command selects an options file that is
placed in ~/.matlab/R2010b and used by default for 'mex'. An options
file in the