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

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

[复制链接]

该用户从未签到

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

EDA365欢迎您登录!

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

x
以下是步骤:
2 J0 Z3 R: \( p, A>> mex -setup % 这是必须的! x4 Z2 v3 n# w& Y, Y1 q# C0 `8 s
Please choose your compiler for building external inteRFace (MEX) files: 0 x) X# N  u3 B% u+ H+ X: [. I2 Q3 {

* G: t% D" K: @9 h. h# G2 lWould you like mex to locate installed compilers [y]/n? n %这次是选择编译器,输入n,因为你的是自定义的
- @, E, i1 v+ Z' J%出现下面的选项:
; c& x) e4 q9 ]& J7 r  ZSelect a compiler:
7 d; a3 Q& ^* x; X' w* |* f1 n( X" D; j[1] Borland C++ Compiler (free command line tools) 5.5
$ s; ]2 d2 W8 N9 T2 J[2] Borland C++Builder 6.0
" O' ]4 S7 D- e8 |: f[3] Borland C++Builder 5.0
7 N; Z, V' D+ A. O[4] Compaq Visual Fortran 6.1 * j; j* T* }, s3 r, I. E
[5] Compaq Visual Fortran 6.6 / d& J+ W2 D, e  v8 m
[6] Intel C++ 9.1 (with Microsoft Visual C++ 2005 linker) ! q% o; F4 z- d: [& P! O) m" n" P: w
[7] Intel Visual Fortran 9.1 (with Microsoft Visual C++ 2005 linker) 3 E& A! F3 v+ q0 p. y  w
[8] Intel Visual Fortran 9.0 (with Microsoft Visual C++ 2005 linker)
3 r5 W0 a( x0 E[9] Intel Visual Fortran 9.0 (with Microsoft Visual C++ .NET 2003 linker)
% E9 k9 |; w3 e0 x[10] Lcc-win32 C 2.4.1
7 q5 d, Z' `, B& j, w: U[11] Microsoft Visual C++ 6.0
: [! U3 \+ M' w* o[12] Microsoft Visual C++ .NET 2003
# r3 n% C- i8 N[13] Microsoft Visual C++ 2005
5 O5 y( u% ^( j5 C- F* x' x[14] Microsoft Visual C++ 2005 Express Edition , f. _4 [& a: C# y, G
[15] Open WATCOM C++ 1.3 : S+ |. x& J7 x+ f

. v0 L" S' h* F* R$ Q6 `% O. E6 }, Q[0] None
1 v7 Q2 P0 b; RCompiler: 13%这次选择13,或许你也可以用其他的& {! [% l& C) _1 O' @9 i
The default location for Microsoft Visual C++ 2005 compilers is C:\Program Files\Microsoft Visual Studio 8,
* k5 \$ L' T" O8 U, U9 a" Ybut that directory does not exist on this machine.  # R' }3 O/ w6 z: T* _4 h% g1 C% X

* E* e$ _/ |% OUse C:\Program Files\Microsoft Visual Studio 8 anyway [y]/n? n %这次它说要使用默认的路径  继续选择n
. b2 C/ D% K5 D( fPlease enter the location of your compiler: [C:\Program Files\Microsoft Visual Studio 8] %它的意思是让你输入编译器的位置,输入:D:\Program Files\Microsoft Visual Studio 8
7 E0 I9 L& H+ M; O) ^4 t% 下面就是确认了
' Z5 k$ }) J- u" E$ _6 c# PPlease verify your choices:
% \* ^) z0 ^5 q; r) N
3 s% t& ~/ v2 K9 G3 TCompiler: Microsoft Visual C++ 2005  - a4 y  w8 p, x4 [1 D: c
Location: D:\Program Files\Microsoft Visual Studio 8
6 r1 x, X' {- h" L- P1 H! T0 y- {# k
) r: X3 j9 M, h, L, g- `7 LAre these correct?([y]/n): y
. u  I6 j, m9 j4 Y! v$ t*************************************************************************** + B; s. q6 C8 u+ c) ]. i7 Z
  Warning: MEX-files generated using Microsoft Visual C++ 2005 require , e! ?( e6 Q7 T$ G2 ?4 }& Y
           that Microsoft Visual Studio 2005 run-time libraries be  
- F, X% L" {2 e! K( v           available on the computer they are run on.
* U3 Y) V4 O4 |  t! k7 `+ W+ V$ j           If you plan to redistribute your MEX-files to other MATLAB
7 M: P  J3 G6 C1 G) \, w( [/ x           users, be sure that they have the run-time libraries.
. S* I4 Q4 H# `9 `3 W. ^7 x- q, g           You can find more information about this at: & `" {  [' B4 x, i% i0 |& f$ C' ^
3 A( s3 E1 b7 e- t
*************************************************************************** ) e1 _2 l# g( l! }4 F( y( Q
; x0 Y3 _+ F3 Q+ d+ t# E
Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2007a\mexopts.bat
  _: d, R' m; yFrom template:              D:\PROGRA~2\MATLAB\R2007a\bin\win32\mexopts\msvc80opts.bat " J! Q) a- p2 A$ F. x) G3 v
- w" O: k% L; N+ E5 x
Done . . . %   ok,done!' m) |! s0 \! P+ H9 C
>> make
$ d1 _" v5 ~4 L7 g3 a; p3 c; I+ u>>
7 M, e" d5 O* r& n4 i%至此彻底完成,
* L7 ?: j+ N; D. P%以下是测试  w/ n4 P+ Y/ T
>>load heart_scale.mat/ r1 Y$ A4 k& |& L$ i! G- L( o$ r
>>model = svmtrain(heart_scale_label, heart_scale_inst, '-c 1 -g 0.07');
* f2 e2 z+ j& j2 P; P>> [predict_label, accuracy, dec_values] = svmpredict(heart_scale_label, heart_scale_inst, model); % ) E1 V2 {0 \) a; G+ ^
Accuracy = 86.6667% (234/270) (classification)%  done
* V) @3 x6 J- d: B: }. n

该用户从未签到

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

本版积分规则

关闭

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

EDA365公众号

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

GMT+8, 2025-11-24 20:30 , Processed in 0.156250 second(s), 24 queries , Gzip On.

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

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

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