Undefined function 'libsvmread' for input arguments of type 'char'.

13 次查看(过去 30 天)
I get the following error when i use libsvm
Undefined function 'libsvmread' for input arguments of type 'char'.
i downloaded libsvm 3.17 and unzipped it and placed all content in my matlab path
in command prompt i used
[a,b] = libsvmread('heart-scale');
i get the above error
plz help

回答(3 个)

Hossein Sangrody
Hossein Sangrody 2015-7-23
type "pathtool" in your MATLAB command window, add the path of the functions e.g. if your operating system is Windows, add "...\libsvm-3.17\windows" and then save. MATLAB can read them now. That's all.
  5 个评论

请先登录,再进行评论。


Christine  Zarief
Christine Zarief 2018-2-23
I get this problem ,I tried a lot to solve it ,but it does not work ,could you please help me ?
Undefined function or variable 'libsvmread'.
Error in demo_libsvm_test1 (line 29) [heart_scale_label, heart_scale_inst] = libsvmread(fullfile(dirData,'heart_scale'));

Walter Roberson
Walter Roberson 2019-12-27
libsvmread() is part of the third-party libsvm tools. See https://www.mathworks.com/matlabcentral/answers/8704-i-can-not-use-libsvm#answer_12007

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by