找回密码
 注册
关于网站域名变更的通知
查看: 394|回复: 1
打印 上一主题 下一主题

是不是在找Matlab的libsvm的安装过程呢?这篇就是哦!

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2020-7-1 16:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
以下是步骤:, L9 N( l. h8 ^
>> mex -setup % 这是必须的
8 g, e8 w  j( {/ w/ _. a% m! T& pPlease choose your compiler for building external inteRFace (MEX) files:
4 ]5 K6 P* W# r4 j" i2 E3 H( i% b4 Y* \9 S# u. E! b1 e6 y
Would you like mex to locate installed compilers [y]/n? n %这次是选择编译器,输入n,因为你的是自定义的
2 T# A' L; ^# k%出现下面的选项:) b1 @* d9 S3 H- t
Select a compiler: & E# y; \' o( g9 J
[1] Borland C++ Compiler (free command line tools) 5.5 & r/ X3 `# K8 e0 N2 |% F- e7 e
[2] Borland C++Builder 6.0 0 U6 d5 c% t/ `( g
[3] Borland C++Builder 5.0
. W& W/ \( ]1 N: c3 S[4] Compaq Visual Fortran 6.1
( {& g' D; F4 |[5] Compaq Visual Fortran 6.6
9 S9 Z  g+ C0 [5 I: [[6] Intel C++ 9.1 (with Microsoft Visual C++ 2005 linker)
3 P& V$ \5 R. E3 i[7] Intel Visual Fortran 9.1 (with Microsoft Visual C++ 2005 linker)
9 K3 m: z7 ~! \: g" F8 K% [[8] Intel Visual Fortran 9.0 (with Microsoft Visual C++ 2005 linker) # L' ?+ ?$ S7 E* T# \* P% q
[9] Intel Visual Fortran 9.0 (with Microsoft Visual C++ .NET 2003 linker) % m/ m8 B- t' A5 }0 v
[10] Lcc-win32 C 2.4.1
' ~$ K! k) ], f[11] Microsoft Visual C++ 6.0
- ]( n& ]. k' a7 L9 [- I[12] Microsoft Visual C++ .NET 2003
2 R  B/ Q% a" ]' E[13] Microsoft Visual C++ 2005
& K7 W0 C, J2 S  R' v[14] Microsoft Visual C++ 2005 Express Edition 3 m' y% o2 S1 y- K4 J, b
[15] Open WATCOM C++ 1.3
$ d7 a6 G1 B- [' `) r: n" P0 V9 X# Q: _0 D4 X4 J
[0] None 1 h7 x  K' K6 o2 i% W
Compiler: 13%这次选择13,或许你也可以用其他的
, u) y+ N% }2 A2 QThe default location for Microsoft Visual C++ 2005 compilers is C:\Program Files\Microsoft Visual Studio 8, 3 v5 W2 {  F* @
but that directory does not exist on this machine.  
. W: n; y. x1 r/ ^8 I& v2 p7 w
% n  q+ ]5 S  t0 |% Z' KUse C:\Program Files\Microsoft Visual Studio 8 anyway [y]/n? n %这次它说要使用默认的路径  继续选择n  {/ J2 ^2 q( o; V1 p: z
Please enter the location of your compiler: [C:\Program Files\Microsoft Visual Studio 8] %它的意思是让你输入编译器的位置,输入:D:\Program Files\Microsoft Visual Studio 8
+ w# T9 n- R1 m+ i% 下面就是确认了
' E& h8 S* s& _* B: x% LPlease verify your choices: * }; |2 l  A% e- r. c5 g1 d1 W

+ i: a0 a# v9 c. {Compiler: Microsoft Visual C++ 2005  - u8 F1 @# {) M
Location: D:\Program Files\Microsoft Visual Studio 8 4 U4 V6 D0 T! y8 J

& q8 [4 e. i2 K2 Y* A7 ~% zAre these correct?([y]/n): y' P7 t  P) |8 }: T6 A
*************************************************************************** 4 W3 @& m0 J9 s' D9 W. N- o- g
  Warning: MEX-files generated using Microsoft Visual C++ 2005 require
0 a. \9 z/ X5 W' I) H' ~           that Microsoft Visual Studio 2005 run-time libraries be  4 y+ u, Q" \8 f; _* X
           available on the computer they are run on. + N2 G6 K% P% L" A
           If you plan to redistribute your MEX-files to other MATLAB 5 j) ?0 j# i5 \) p  Z
           users, be sure that they have the run-time libraries. 5 }/ c. k5 W1 e. x2 Z9 @# K
           You can find more information about this at: , Y- k5 D+ H# a8 I' c  U( ], O  |

% P1 c7 m! O' D7 G% X8 a2 m*************************************************************************** + P" f7 l3 s3 t7 g! P( ~2 |

& \3 h& q  F) STrying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2007a\mexopts.bat & _$ S1 g5 C- Y/ i+ k" B  d% z7 O$ j
From template:              D:\PROGRA~2\MATLAB\R2007a\bin\win32\mexopts\msvc80opts.bat ) m% A6 p) Z* M  d+ k4 N! w0 {5 u

6 V# L5 {7 n6 ^8 n* mDone . . . %   ok,done!- ^* l. x# B7 {/ d& b% e
>> make
. O! D. H  S, ]( W" s>>
) s5 W5 }, J1 H3 Z: Z; `%至此彻底完成,0 J& D2 g8 @( L
%以下是测试
% v. E! R3 v2 [2 p: e. a8 p>>load heart_scale.mat
" O7 z; \3 z9 ?8 g( ?; C/ _>>model = svmtrain(heart_scale_label, heart_scale_inst, '-c 1 -g 0.07');, Y6 N) d# `+ Z7 H; o
>> [predict_label, accuracy, dec_values] = svmpredict(heart_scale_label, heart_scale_inst, model); %
% |9 b0 P/ v  @3 NAccuracy = 86.6667% (234/270) (classification)%  done
4 p6 |; M6 _2 B! u4 G4 G

该用户从未签到

2#
发表于 2020-7-1 16:57 | 只看该作者
嗯嗯,找到了,就是这篇,谢谢!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-11-2 04:36 , Processed in 0.125000 second(s), 23 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表