在新版的Matlab中(本人用的是2013a)有自带的SVM工具包,使用起来也很方便,下面是对于自带工具包的使用介绍

http://blog.163.com/crazyzcs@126/blog/static/129742050201061192243911/

想学习Libsvm的人可以看下面的文章

http://blog.csdn.net/passball/article/details/7673725

http://blog.csdn.net/everysmile/article/details/23464853

Libsvm下载安装

下载地址http://www.csie.ntu.edu.tw/~cjlin/libsvm/index.html#nuandone

在Matlab中使用Libsvm

  将matlab当前工作路径设置成libsvm/matlab所在文件夹

  在命令窗口输入

  

>> mex -setup

Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2013a/win32.html

Please choose your compiler for building MEX-files:

Would you like mex to locate installed compilers [y]/n? y

Select a compiler:
[1] Lcc-win32 C 2.4.1 in E:\Instaled\MATLAB~1\sys\lcc
[2] Microsoft Visual C++ 2010 in E:\Instaled\visual studio2010

[0] None

Compiler:【此处选择 2 】

  安装完成后在命令窗口输入 >make

等一下就可以编译生成matlab可执行的代码了,接下来就可以在Matlab中使用Libsvm工具包了。具体用法可以参见上面的文章。Libsvm中的README文档是必读的。可以用Notepad++打开。

 

 

 

posted on 2014-04-19 08:56  HXingXing  阅读(2013)  评论(0编辑  收藏  举报