1 首先我们要下载一个Libsvm 工具箱 其中,这一切都可以被下载到

2 我们解包 我解压在桌面上 住址C:\Users\Administrator\Desktop\libsvm

3打开matlab 导航到的例子,在下列文件夹

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMDQxNjEwMQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" height="62" width="731">

4 我们依照这个流程输入下面代码

>>
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/R2012b/win64.html

 

Please choose your compiler for building MEX-files:

 

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

 

Select a compiler:

[1] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker)

[2] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker)

[3] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker)

[4] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)

[5] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker)

[6] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker)

[7] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker)

[8] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker)

[9] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker)

[10] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker)

[11] Microsoft Software Development Kit (SDK) 7.1

[12] Microsoft Visual C++ 2005 SP1

[13] Microsoft Visual C++ 2008 SP1

[14] Microsoft Visual C++ 2010

 

[0] None

 

Compiler:

 

Your machine has a Microsoft Visual C++ 2010 compiler located at

D:\VS2010 安装. Do you want to use this compiler [y]/n? y

 

Please verify your choices:

 

Compiler: Microsoft Visual C++ 2010  

Location: D:\VS2010 安装

 

Are these correct [y]/n? y

 

***************************************************************************

  Warning: MEX-files generated using Microsoft Visual C++ 2010 require

           that Microsoft Visual Studio 2010 run-time libraries be  

           available on the computer they are run on.

           If you plan to redistribute your MEX-files to other MATLAB

           users, be sure that they have the run-time libraries.

***************************************************************************

 

 

Trying to update options file: C:\Users\Administrator\AppData\Roaming\MathWorks\MATLAB\R2012b\mexopts.bat

From template:              C:\PROGRA~1\MATLAB\R2012b\bin\win64\mexopts\msvc100opts.bat

 

Done . . .

 

**************************************************************************

  Warning: The MATLAB C and Fortran API has changed to support MATLAB

           variables with more than 2^32-1 elements.  In the near future

           you will be required to update your code to utilize the new

           API. You can find more information about this at:

           http://www.mathworks.com/help/techdoc/matlab_external/bsflnue-1.html

           Building with the -largeArrayDims option enables the new API.

**************************************************************************

 

>> make

>> load heart_scale.mat

>> model = svmtrain(heart_scale_label, heart_scale_inst, '-c 1 -g 0.07');

>>  [predict_label, accuracy, dec_values] = svmpredict(heart_scale_label, heart_scale_inst, model);

Accuracy = 86.6667% (234/270) (classification)

假设数据集中的数据可以载入出来 即显示如红色所看到的 我们就行觉得完毕了配置

须要注意的是 安装后目录绝对地址尽量不要挪动 不然再次执行的时候有可能会报错...

注:蓝色的部分为我们须要手动输入的代码部分 最后一行红色为终于输出

就是这样 其它能够去看matlab论坛的精品帖子

1 http://www.ilovematlab.cn/thread-35262-1-1.html

2 http://www.ilovematlab.cn/thread-61234-1-1.html

3 http://www.ilovematlab.cn/thread-50032-1-1.html

版权声明:本文博主原创文章,博客,未经同意不得转载。

matlab配置Libsvm 防止备忘录的更多相关文章

  1. matlab使用libsvm入门教程——使用matlab安装配置libsvm以及一个svm分类实例

    前言 此教程专注于刚入门的小白, 且博客拥有时效性, 发布于2019年3月份, 可能后面的读者会发现一些问题, 欢迎底下评论出现的问题,我将尽可能更新解决方案. 我开始也在如何安装libsvm上出现了 ...

  2. matlab2016b配置libsvm的各中坑及解决办法

    Q1:matlab2016b不能自动关联m文件! A1: (1)首先准备好工具,工具链接:pan.baidu.com/s/1t_KaFZNOFln9m57sMBTrkQ:提取码:x49w. (2)下载 ...

  3. Matlab的libsvm的安装

    最关键的是compilers的选择(对于把Microsoft visual stdio 2005或者其他的编译器安装在自定义目录下的这一步非常关键)  以下是步骤:>> mex -setu ...

  4. libSVM笔记之(一)在matlab环境下安装配置libSVM

    本文为原创作品,转载请注明出处 欢迎关注我的博客:http://blog.csdn.net/hit2015spring和http://www.cnblogs.com/xujianqing 台湾林智仁教 ...

  5. 使用脚本自动配置matlab安装libsvm和随机森林工具箱

    前言 支持向量机(SVM)和随机森林 都是用于分类的机器学习算法. 这里我需要对网上的工具箱在matlab中进行配置. 效果演示: 1.双击运行“自动配置.bat” 2.matlab会自动启动,手动配 ...

  6. MATLAB安装libsvm无法使用解决办法(转)

    buaasuozi  这是原作者: 安装libsvm 不成功有可能是你的MATLAB版本或者是编译文件版本的问题,但是不要急着换其他版本....说不定就有别的解决办法呢 首先感谢Lin教授及其实验室提 ...

  7. Matlab2012a下配置LibSVM—3.18

    1.下载最新版LibSVM 点击此处打开网页,点击zip file下载最新版的文件并解压放在任何目录下,建议放在安装目录便于查找.如我的文件解压在路径C:\ProgramFiles\MATLAB\R2 ...

  8. win7下matlab2016a配置libsvm

    1.下载libsvm https://www.csie.ntu.edu.tw/~cjlin/libsvm/ 2.解压到matlab2016a的安装目录的toolbox下 例如我的D:\Program ...

  9. 64位matlab中libsvm的安装

    因为windows版的matlab对编译器的识别不好.所以直接在网上下了已经编译好的libsvm文件放入toolbox文件夹就可以用libsvm了 libsvm已编译好的文件下载地址: 猛戳我下载 1 ...

随机推荐

  1. C++ Primer注意事项11_运算符重载_算术/关系运算符_下标运算符

    1.算术/关系运算符 平时,定义成非成员函数以同意左右側运算对象进行转换.由于这些运算符一般不须要改变运算对象的状态,所以形參都是常量的引用. 以"+"号运算符为例: Person ...

  2. ASP.NET执行循序

    首先第一次运行一个应用程序(WebSite或者WebApplication都是Web应用程序)第一次请求 -> 1,IIS -> 2,aspnet_isapi(非托管dll) -> ...

  3. 位图像素的颜色 携程编程大赛hdu

    位图像素的颜色 Time Limit: 2000/1000 MS (Java/Others)    MemoryLimit: 32768/32768 K (Java/Others) Total Sub ...

  4. hdu1052 Tian Ji -- The Horse Racing 馋

    转载请注明出处:http://blog.csdn.net/u012860063 题目链接:pid=1052">http://acm.hdu.edu.cn/showproblem.php ...

  5. poj 1962 Corporative Network

    主题链接:http://poj.org/problem?id=1962 思路:每一个集合中用根节点标记这个集合,每一个点到根节点的距离. code: <span style="font ...

  6. hdu N!

    Problem Description Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! Input One N in o ...

  7. Codeforces 12D Ball 树形阵列模拟3排序元素

    主题链接:点击打开链接 #include<stdio.h> #include<iostream> #include<string.h> #include<se ...

  8. 开源Math.NET基础数学类库使用(04)C#解析Matrix Marke数据格式

    原文:[原创]开源Math.NET基础数学类库使用(04)C#解析Matrix Marke数据格式 开源Math.NET基础数学类库使用系列文章总目录:   1.开源.NET基础数学计算组件Math. ...

  9. Socket方法LAN多线程文件传输

    1.思维:为了实现各种文件的大小可以被发送和接收的,它可以被设置为发送和接收缓冲器环.并记录文件的位置读取,假设读入缓冲区的字节的特定数目大于缓冲区的大小较小.然后该文件被发送,退出发送周期,关闭连接 ...

  10. Android学习路径(七)建立Action Bar

    在action bar最今本的形式中,它只在左边展示了activity的标题以及应用的icon. 即使在这样的简单的形式中,它也不过告诉用户如今在应用的哪个activity中,同一时候为你的应用保持一 ...