mexlibsvm.m
来自「Support Vector Machines is a powerful me」· M 代码 · 共 33 行
M
33 行
% 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 + =
减小字号Ctrl + -
显示快捷键?