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

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

[复制链接]

该用户从未签到

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

EDA365欢迎您登录!

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

x
以下是步骤:
. @1 k* K: X( |* i# U0 l! a>> mex -setup % 这是必须的+ R" _6 s& H5 ~. Z) O4 A
Please choose your compiler for building external inteRFace (MEX) files: + w% v2 r* N6 K/ c  n( G
" q$ r5 Y& ^2 \
Would you like mex to locate installed compilers [y]/n? n %这次是选择编译器,输入n,因为你的是自定义的
# X% h+ V1 _7 a3 z6 g! M- ]; K%出现下面的选项:
1 h& G' R  N+ z$ `4 r1 Q7 uSelect a compiler: : C6 B1 \/ P' ]4 x$ _
[1] Borland C++ Compiler (free command line tools) 5.5
3 f8 e, `9 W7 W5 i# C3 g[2] Borland C++Builder 6.0
( U& S& {4 |& u! z7 ^9 T[3] Borland C++Builder 5.0
, I; M. ^( k' K4 B& E[4] Compaq Visual Fortran 6.1
+ u: ~2 l6 Y, B[5] Compaq Visual Fortran 6.6
9 U4 s/ G3 m" e8 S" d9 N[6] Intel C++ 9.1 (with Microsoft Visual C++ 2005 linker) 8 D" C0 x% c% g% U  q; v
[7] Intel Visual Fortran 9.1 (with Microsoft Visual C++ 2005 linker) $ R& A( l- D4 ]$ s, s% H
[8] Intel Visual Fortran 9.0 (with Microsoft Visual C++ 2005 linker)
, n! U6 ]* y) ^& `: N! Q  G[9] Intel Visual Fortran 9.0 (with Microsoft Visual C++ .NET 2003 linker)
1 M+ }/ u% R4 h: K9 U1 Q4 P[10] Lcc-win32 C 2.4.1 & h, k& \- ], k
[11] Microsoft Visual C++ 6.0 6 ]  }# n- d8 F
[12] Microsoft Visual C++ .NET 2003 ; E- j( v* G4 O2 @/ _; _
[13] Microsoft Visual C++ 2005 3 z0 W% A. `1 K( x6 j$ z
[14] Microsoft Visual C++ 2005 Express Edition 7 b: ^, s- Z7 W5 V$ D) \
[15] Open WATCOM C++ 1.3
! o) n8 [- s; l; s6 \( v: Q' u" K+ k0 P
[0] None , J* n5 a: @( k
Compiler: 13%这次选择13,或许你也可以用其他的
% }: B9 R% j( L9 UThe default location for Microsoft Visual C++ 2005 compilers is C:\Program Files\Microsoft Visual Studio 8, $ ?9 }3 l3 T1 v% U9 y3 B
but that directory does not exist on this machine.  
, I+ V0 m8 U! ^6 c5 [
% J# \! v2 Q$ zUse C:\Program Files\Microsoft Visual Studio 8 anyway [y]/n? n %这次它说要使用默认的路径  继续选择n% m+ y' |) n2 d$ Z
Please enter the location of your compiler: [C:\Program Files\Microsoft Visual Studio 8] %它的意思是让你输入编译器的位置,输入:D:\Program Files\Microsoft Visual Studio 8
5 R3 l- G; M2 k( {6 d+ b  Z) B% 下面就是确认了4 E3 C1 {; ]1 L6 ]3 I- \! h$ P
Please verify your choices:
" w! C/ K3 z# w1 w$ v* ^8 k( H5 V( J" \- V7 w/ z" l. L' H, _0 K/ T3 L
Compiler: Microsoft Visual C++ 2005  
5 Z7 D/ Z+ d  {Location: D:\Program Files\Microsoft Visual Studio 8 ) n9 p) W  l, P1 b/ U

* o7 x1 u4 n4 w1 Q/ I& |Are these correct?([y]/n): y) R  P/ M/ z- _. }4 v5 ~
*************************************************************************** ! J5 Q6 I3 f) w0 v( V( i* Z
  Warning: MEX-files generated using Microsoft Visual C++ 2005 require & E/ K2 M% k% N$ s: `; q  E
           that Microsoft Visual Studio 2005 run-time libraries be  
, a# D. W+ E/ U! h8 `! u" A           available on the computer they are run on. ! |# Z8 S' P0 P+ V! ^
           If you plan to redistribute your MEX-files to other MATLAB & ~3 l6 f, z' d# p4 H
           users, be sure that they have the run-time libraries. 3 X; G% l; r8 X! T& U- Z& A0 P
           You can find more information about this at: 7 L" V! {1 z# U5 Z) l
7 Y7 P# I" k+ X/ f
***************************************************************************
6 r3 a, V$ T& v# c( T, I" T( }8 E& D8 D' t1 X( H1 S
Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2007a\mexopts.bat 7 Z& k& L" C6 J8 v9 c% |8 B
From template:              D:\PROGRA~2\MATLAB\R2007a\bin\win32\mexopts\msvc80opts.bat
/ x7 M  |9 m. q0 Z% N+ U# M( y! y- Y
Done . . . %   ok,done!
6 _8 F0 Y9 X3 v( Z, L9 P7 K) z>> make
1 P. G5 \0 A" y4 T- @4 s>>
; A/ L5 |2 F% D* v( M( g6 n1 |3 r%至此彻底完成,
7 N  D$ n- m7 g: Q2 J+ }5 Y5 l. o, s%以下是测试/ |5 V1 S2 |/ L! D1 l9 t
>>load heart_scale.mat3 Y* S; l# ?# K6 ?
>>model = svmtrain(heart_scale_label, heart_scale_inst, '-c 1 -g 0.07');
: x! e/ y9 J8 ~, M- t. ^8 h>> [predict_label, accuracy, dec_values] = svmpredict(heart_scale_label, heart_scale_inst, model); % " i5 k2 H* `5 r7 e- ]! d, i
Accuracy = 86.6667% (234/270) (classification)%  done
) z. [9 Z- @. L4 \4 I! B

该用户从未签到

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

本版积分规则

关闭

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

EDA365公众号

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

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

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

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

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