0

libsvmhttp://www.csie.ntu.edu.tw/~cjlin/libsvm/
下载了我解压缩并将文件夹复制到libsvm文件c:..../documents/MATLAB夹。包含mex.h在所有 C 文件中。在 libsvm-> 里面我有不同的文件夹。同样在那个 Matlab 文件夹中,我有类似libsvmread.c, libsvmwrite.c, makefile, make.m,svmtrain等的文件svmpredict...

如何在 matlab 中使用这些文件?谁能帮我为这些文件创建 .mex 文件。我阅读并尝试了很多次..它对我来说无法正常工作。matlab.can我需要尽快在任何人帮助我的情况下创建 svmensemble 。

4

2 回答 2

1

看一下README文件:

安装和数据格式

在 Unix 系统上,输入make' to build thesvm-train' 和 `svm-predict' 程序。不带参数运行它们以显示它们的用法。

在其他系统上,请参阅Makefile' to build them (e.g., see 'Building Windows binaries' in this file) or use the pre-built binaries (Windows binaries are in the directorywindows')。

如需更多信息,请告诉我们您使用的是哪种操作系统。

于 2012-01-25T17:49:51.957 回答
0

您需要执行 mex -setup 来配置编译器。之后,您运行 matlab 文件夹中的 make.m 文件。请阅读 README 文件。详细信息在那里...

于 2012-01-27T06:34:48.213 回答