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

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

[复制链接]

该用户从未签到

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

EDA365欢迎您登录!

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

x
以下是步骤:
# N; v% Z' _9 s" ^4 m4 d>> mex -setup % 这是必须的
8 ?& C# T+ N# x6 I# O% ]) e" y' d' tPlease choose your compiler for building external inteRFace (MEX) files: ! W6 m* A/ u' }  G
4 @: ]. b1 c1 q- b; \7 C' [
Would you like mex to locate installed compilers [y]/n? n %这次是选择编译器,输入n,因为你的是自定义的# G2 `, o) ^4 Q; r9 {0 T4 y
%出现下面的选项:+ F* e# _( E8 t5 I  [
Select a compiler:
2 [- ]6 ?$ F6 y[1] Borland C++ Compiler (free command line tools) 5.5
; L3 e1 d/ r; A1 {/ I: f' ?[2] Borland C++Builder 6.0 3 M3 a& g) N# U0 w7 J- a
[3] Borland C++Builder 5.0
# T& L% r1 s2 f4 ]: K5 ]' v5 J[4] Compaq Visual Fortran 6.1 2 B; I5 n' T, o' z6 g' s
[5] Compaq Visual Fortran 6.6 ' y8 `. P5 a- i6 A
[6] Intel C++ 9.1 (with Microsoft Visual C++ 2005 linker)
" D* j1 ^4 E& ^; K[7] Intel Visual Fortran 9.1 (with Microsoft Visual C++ 2005 linker) " o9 [* y* W9 v! Q' ^& ~0 ?# Q$ g
[8] Intel Visual Fortran 9.0 (with Microsoft Visual C++ 2005 linker) 9 k: d* E6 V. A% f
[9] Intel Visual Fortran 9.0 (with Microsoft Visual C++ .NET 2003 linker) ! N$ c; g8 `( O* u3 \
[10] Lcc-win32 C 2.4.1 0 K! I  Q: ^. d& @% h" {
[11] Microsoft Visual C++ 6.0 % h) I6 ^0 @' M7 B$ s0 d3 e
[12] Microsoft Visual C++ .NET 2003 : `/ D# v' W3 f+ d0 Y) X
[13] Microsoft Visual C++ 2005 ! N- K3 w2 w- d* }# ^3 a8 Z
[14] Microsoft Visual C++ 2005 Express Edition 0 j* j) ~6 v& f5 [; t4 ?* |+ g" W
[15] Open WATCOM C++ 1.3
! L- W6 T* p6 J+ D9 f6 H* w3 {7 C
4 Y/ R3 T8 i9 E! \+ [& w[0] None
% S1 F8 o: U' _, `1 a0 jCompiler: 13%这次选择13,或许你也可以用其他的
4 S, l0 [. p! O1 v& z* P5 m+ AThe default location for Microsoft Visual C++ 2005 compilers is C:\Program Files\Microsoft Visual Studio 8,
% F' \( S6 G- i/ _but that directory does not exist on this machine.  
! y$ y. X1 x. f7 ^- t* c; q+ n
+ z$ @% A/ d, m& }6 WUse C:\Program Files\Microsoft Visual Studio 8 anyway [y]/n? n %这次它说要使用默认的路径  继续选择n
% F1 s5 M8 j& `- W$ r1 S) h1 ?Please enter the location of your compiler: [C:\Program Files\Microsoft Visual Studio 8] %它的意思是让你输入编译器的位置,输入:D:\Program Files\Microsoft Visual Studio 8
; e+ C& L% _0 R! w+ u* z% |% 下面就是确认了" n5 m5 j2 D3 P% m; D
Please verify your choices: * \+ o: y2 S! T( h9 R, l
& \. Y9 ~7 l' s' A% U* y
Compiler: Microsoft Visual C++ 2005  / ]% `/ u3 g9 H
Location: D:\Program Files\Microsoft Visual Studio 8 ; Q+ L) I( O- R; R& \  q

% J" U9 q: V/ t$ aAre these correct?([y]/n): y$ M  N  I' S, ?* W
***************************************************************************
* l) W9 S& Y7 t$ f  Warning: MEX-files generated using Microsoft Visual C++ 2005 require / T2 T( `! {. [- i* ?2 r: v
           that Microsoft Visual Studio 2005 run-time libraries be  " N. Q0 b7 Q* @# G# A' K( y/ e
           available on the computer they are run on. 2 o. x! h' F7 S$ N8 o" o2 x1 H
           If you plan to redistribute your MEX-files to other MATLAB
3 G3 p. T* n5 k           users, be sure that they have the run-time libraries. + o* S$ ^: M& q! s8 j; @6 D( y
           You can find more information about this at:
2 b0 \# ]/ u+ Y% \" J7 x& x. e' U" M* s+ @; ?) v; k4 M
*************************************************************************** 8 O+ F1 N: m  D- P; r

( |# I! a8 Y' l$ XTrying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2007a\mexopts.bat 1 n' S3 _0 W, `6 I
From template:              D:\PROGRA~2\MATLAB\R2007a\bin\win32\mexopts\msvc80opts.bat 1 C+ \. ^' r$ O5 V7 ^

2 z! }& @7 g: K3 O, ~3 q2 ^+ HDone . . . %   ok,done!& D0 I% m: e0 }, c
>> make
/ b) B0 ]5 k7 H8 g: G* r) ]>> 1 P% s4 R& S; G
%至此彻底完成,$ i1 P/ ^0 P+ X0 }& m2 k6 r
%以下是测试. n1 h) p4 y( [* j+ c
>>load heart_scale.mat
% A- \' T9 k: Y! e# u$ w>>model = svmtrain(heart_scale_label, heart_scale_inst, '-c 1 -g 0.07');
" L) H0 p! l/ Z* X) `/ }>> [predict_label, accuracy, dec_values] = svmpredict(heart_scale_label, heart_scale_inst, model); % 6 h/ C) [. b8 l& T: Y! q
Accuracy = 86.6667% (234/270) (classification)%  done8 x9 k/ D2 ~) c4 p4 x9 ]

该用户从未签到

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

本版积分规则

关闭

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

EDA365公众号

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

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

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

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

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