Undefined function 'libsvmread' for input arguments of type 'char'.
Mostrar comentarios más antiguos
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
Respuestas (3)
Hossein Sangrody
el 23 de Jul. de 2015
0 votos
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 comentarios
Astha Ameta
el 9 de Nov. de 2016
Kindly elaborate your explanation. I am also facing the same issue.
Astha Ameta
el 9 de Nov. de 2016
I followed the steps mentioned by you but instead, I got a new error: ??? Invalid MEX-file 'C:\Program Files\matlab\R2010a\toolbox\libsvm-3.21\windows\libsvmread.mexw64': The specified module could not be found. Although the file is there but still this error is coming. Please advise.
CC0058
el 9 de En. de 2017
I also got the same problem, after adding the path I got the second error you mentioned. Did you solve this?
Astha Ameta
el 23 de En. de 2017
Editada: Astha Ameta
el 23 de En. de 2017
It is still unresolved.
Akanksha Goel
el 18 de Dic. de 2018
I am getting same issue what to do next?
Christine Zarief
el 23 de Feb. de 2018
0 votos
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
el 27 de Dic. de 2019
0 votos
libsvmread() is part of the third-party libsvm tools. See https://www.mathworks.com/matlabcentral/answers/8704-i-can-not-use-libsvm#answer_12007
Categorías
Más información sobre Read, Write, and Modify Image en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!