📄 mexlibsvm.m
字号:
% MEXLIBSVM Compile LIBSVMOPT and LIBSVMSIM.% ------------------------------------------------------------------------------% MATLAB Interface for LIBSVM, Version 1.2%% Copyright (C) 2004-2005 Michael Vogt% Written by Michael Vogt, Atanas Ayarov and Bennet Gedan% % This program is free software; you can redistribute it and/or modify it% under the terms of the GNU General Public License as published by the Free% Software Foundation; either version 2 of the License, or (at your option)% any later version.% ------------------------------------------------------------------------------mainpath = fileparts(mfilename('fullpath'));libpath = fullfile(mainpath,'libsvm');srcpath = fullfile(mainpath,'source');if ~exist(fullfile(libpath,'svm.cpp')) | ~exist(fullfile(libpath,'svm.h')) error(['LIBSVM not found in ',libpath]);endeval(['mex -outdir ''',mainpath,''' -I''',libpath,''' ', ... '''',fullfile(srcpath,'libsvmopt.c'),''' ', ... '''',fullfile(srcpath,'libsvmaux.c'),''' ', ... '''',fullfile(libpath,'svm.cpp'),'''']);eval(['mex -outdir ''',mainpath,''' -I''',libpath,''' ', ... '''',fullfile(srcpath,'libsvmsim.c'),''' ', ... '''',fullfile(srcpath,'libsvmaux.c'),''' ', ... '''',fullfile(libpath,'svm.cpp'),'''']);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -