matlab 中配置libsvm的方法。。。。

    技术2022-05-19  29

    下载工具箱[libsvm-mat-2.89-3]安装方法也很简单,解压文件,把当前工作目录调整到libsvm所在的文件夹下,再在set path里将libsvm所在的文件夹加到里面.然后命令行里输入

    >> mex-setup    Usage:         MEX [option1 ... optionN] sourcefile1 [... sourcefileN]             [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]        or (to build an Ada S-function):         MEX [-v] [-g] -ada <sfcn>.ads      Use the -help option for more information, or consult the MATLAB API Guide.     D:/MATLAB7/BIN/WIN32/MEX.PL: Error: No file names given.  ??? Undefined function or variable 'setup'.

    >> clear all>> mex -setupPlease choose your compiler for building external interface (MEX) files:  Would you like mex to locate installed compilers [y]/n? y Select a compiler: [1] Digital Visual Fortran version 6.0 in C:/Program Files/Microsoft Visual Studio [2] Lcc C version 2.4 in D:/MATLAB7/sys/lcc [3] Microsoft Visual C/C++ version 6.0 in C:/Program Files/Microsoft Visual Studio  [0] None  Compiler: 3 Please verify your choices:  Compiler: Microsoft Visual C/C++ 6.0 Location: C:/Program Files/Microsoft Visual Studio  Are these correct?([y]/n): y Try to update options file: C:/Documents and Settings/Administrator/Application Data/MathWorks/MATLAB/R14/mexopts.bat From template:              D:/MATLAB7/BIN/WIN32/mexopts/msvc60opts.bat  Done . . .  >> make


    最新回复(0)