libsvm matlab 上的安装
简介windows上matlab安装还是有一些坑的
首先 matlab2016a 安装一个 编译器 tdm64-gcc-4.9.2.exe
然后更改 libsvm 中的matlab make.m 重点观察 $CFLAGS
% This make.m is for MATLAB and OCTAVE under Windows, Mac, and Unix function make() try % This part is for OCTAVE if (exist ('OCTAVE_VERSION', 'builtin')) mex libsvmread.c mex libsvmwrite.c mex -I.. svmtrain.c ../svm.cpp svm_model_matlab.c mex -I.. svmpredict.c ../svm.cpp svm_model_matlab.c % This part is for MATLAB % Add -largeArrayDims on 64-bit machines of MATLAB else mex CFLAGS="$CFLAGS -std=c99" -largeArrayDims libsvmread.c mex CFLAGS="$CFLAGS -std=c99" -largeArrayDims libsvmwrite.c mex CFLAGS="$CFLAGS -std=c99" -I.. -largeArrayDims svmtrain.c ../svm.cpp svm_model_matlab.c mex CFLAGS="$CFLAGS -std=c99" -I.. -largeArrayDims svmpredict.c ../svm.cpp svm_model_matlab.c end catch err fprintf('Error: %s failed (line %d)\n', err.stack(1).file, err.stack(1).line); disp(err.message); fprintf('=> Please check README for detailed instructions.\n'); end
参考链接
相关推荐
wwwdownmacom 2020-09-14
wanff0 2020-07-26
cuiguanjun 2020-07-26
HongAndYi 2020-07-04
知识小屋 2020-06-24
wanff0 2020-06-14
cuiguanjun 2020-06-13
liqing 2020-06-13
algorithmlixuan 2020-06-12
faustcao 2020-06-12
GerwelsJI 2020-06-09
zyazky 2020-06-08
cuiguanjun 2020-06-05
Canethui 2020-05-31
Canethui 2020-05-30
zyazky 2020-05-29
zyazky 2020-05-19
zyazky 2020-05-17