forked from Xtra-Computing/thundersvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvm_predict_matlab.m
More file actions
executable file
·21 lines (21 loc) · 901 Bytes
/
Copy pathsvm_predict_matlab.m
File metadata and controls
executable file
·21 lines (21 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function svm_train_matlab(a)
str = {'thundersvm-predict'}
str2 = [str a]
if ispc
if not(libisloaded('thundersvm'))
loadlibrary('../build/bin/Debug/thundersvm.dll', '../include/thundersvm/svm_interface_api.h')
end
calllib('thundersvm', 'thundersvm_predict', length(str2), str2)
elseif ismac
if not(libisloaded('libthundersvm'))
loadlibrary('../build/lib/libthundersvm.dylib', '../include/thundersvm/svm_interface_api.h')
end
calllib('libthundersvm', 'thundersvm_predict', length(str2), str2)
elseif isunix
if not(libisloaded('libthundersvm'))
loadlibrary('../build/lib/libthundersvm.so', '../include/thundersvm/svm_interface_api.h')
end
calllib('libthundersvm', 'thundersvm_predict', length(str2), str2)
else
disp 'OS not supported!'
end