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

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

[复制链接]

该用户从未签到

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

EDA365欢迎您登录!

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

x
以下是步骤:
4 c& R8 j" f! o>> mex -setup % 这是必须的
& n% C1 S# e2 ^Please choose your compiler for building external inteRFace (MEX) files:   e2 U1 y! u7 D+ A
$ V, `: ?% p8 L# w9 G% C
Would you like mex to locate installed compilers [y]/n? n %这次是选择编译器,输入n,因为你的是自定义的, Q6 J. y8 L4 J6 N( S) |' W; g# c6 J& w' d
%出现下面的选项:
' S  s# U/ \5 M: {  k0 Z0 q- J; m: hSelect a compiler:
2 C! \# k) _$ [* o0 F5 I9 A[1] Borland C++ Compiler (free command line tools) 5.5 # \# L- |  B2 f1 }& P8 y: v
[2] Borland C++Builder 6.0
9 o" n7 H/ z7 K. L[3] Borland C++Builder 5.0 / t6 _8 u$ _/ w6 O( l, b! U8 V
[4] Compaq Visual Fortran 6.1
! L3 h: M2 f) C8 F' b[5] Compaq Visual Fortran 6.6 & `8 K5 _/ u" s# e! G" l
[6] Intel C++ 9.1 (with Microsoft Visual C++ 2005 linker) : W. T& x9 q$ b: F' b- p; Q
[7] Intel Visual Fortran 9.1 (with Microsoft Visual C++ 2005 linker)
9 t9 E1 C9 Y# n/ }  ]# U' r[8] Intel Visual Fortran 9.0 (with Microsoft Visual C++ 2005 linker)
9 L- Q& j* @7 D# u[9] Intel Visual Fortran 9.0 (with Microsoft Visual C++ .NET 2003 linker)
" v* ^; k) b( r/ D[10] Lcc-win32 C 2.4.1
, m% r( K! X  }5 p# V$ F( M[11] Microsoft Visual C++ 6.0 ) m0 T* |( H! r) `; M
[12] Microsoft Visual C++ .NET 2003 - G! ]! f0 r  v* Q3 u
[13] Microsoft Visual C++ 2005 " ?- S( Z3 k0 P# J# c% b* p" Q
[14] Microsoft Visual C++ 2005 Express Edition ' m/ J0 v! m5 W
[15] Open WATCOM C++ 1.3 . K1 }: Z. y, n2 Z, y8 Y- H+ X1 H

1 o$ y: L4 C% S+ T3 h[0] None / w0 B" l( s7 f2 L
Compiler: 13%这次选择13,或许你也可以用其他的. L) e3 z! }' o  N- @$ p
The default location for Microsoft Visual C++ 2005 compilers is C:\Program Files\Microsoft Visual Studio 8,
* h1 K( V  p# m+ c7 w( lbut that directory does not exist on this machine.  : K  N0 m6 j; z7 A# ]" `
! q2 o1 _$ L% w+ n3 I' h0 h( J( |
Use C:\Program Files\Microsoft Visual Studio 8 anyway [y]/n? n %这次它说要使用默认的路径  继续选择n4 e5 f+ {( b9 X; ?6 w" u
Please enter the location of your compiler: [C:\Program Files\Microsoft Visual Studio 8] %它的意思是让你输入编译器的位置,输入:D:\Program Files\Microsoft Visual Studio 8
* V3 z$ |( b5 F' ?9 E% 下面就是确认了
& O4 t' k6 y6 I" V( sPlease verify your choices:
+ E9 t0 L2 _1 s. ?# n" A# {( b
0 g2 h. Y" A+ j% I4 x$ }Compiler: Microsoft Visual C++ 2005  : L( I" `) P2 A* x' u3 l- t
Location: D:\Program Files\Microsoft Visual Studio 8
+ j; h: g* _8 V; {% S# t% E. j# \, \& I$ o# h1 ^
Are these correct?([y]/n): y
# N% S& y) A1 s- F  O*************************************************************************** 4 _4 o. H1 a7 w* p
  Warning: MEX-files generated using Microsoft Visual C++ 2005 require ( X; H9 @/ `% J  n7 g; t
           that Microsoft Visual Studio 2005 run-time libraries be  * s# I8 v8 F! S+ e0 Z
           available on the computer they are run on. 0 p$ P( c" V+ f) H
           If you plan to redistribute your MEX-files to other MATLAB
6 s7 {, ~) c5 z; f           users, be sure that they have the run-time libraries. # X. M" }" d0 i, G
           You can find more information about this at: - h# ~6 G: \! n, h# r# a2 A4 b1 M1 M
+ Y8 c: h5 Z: @$ O1 z6 A- U
*************************************************************************** 6 H% O- s9 u$ e; K
4 B7 A: ~7 {( S8 L
Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2007a\mexopts.bat
5 }5 T4 [, A. t, Z7 K  B6 I4 k: l  rFrom template:              D:\PROGRA~2\MATLAB\R2007a\bin\win32\mexopts\msvc80opts.bat ' b( p" I( s- h# h! w' O% s2 [7 l
! z- P+ C' C) L0 @2 s2 g
Done . . . %   ok,done!
  M6 S( g  b) p6 ?>> make
# d) u* I6 u1 K, n* E! j* v>> + L# p' `) {# y, t6 h. ^
%至此彻底完成,/ N( N( i1 P$ a! M% L
%以下是测试" \- w7 A. x( }0 j2 e
>>load heart_scale.mat
* }) l* Z" t/ |>>model = svmtrain(heart_scale_label, heart_scale_inst, '-c 1 -g 0.07');4 S/ G/ c7 z' B. `) L
>> [predict_label, accuracy, dec_values] = svmpredict(heart_scale_label, heart_scale_inst, model); % ( ~3 r8 R! L4 j3 r/ v
Accuracy = 86.6667% (234/270) (classification)%  done
: |7 f) Y. ]$ B! Z' m

该用户从未签到

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

本版积分规则

关闭

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

EDA365公众号

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

GMT+8, 2025-11-5 21:45 , Processed in 0.140625 second(s), 24 queries , Gzip On.

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

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

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