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

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일

0 개 추천

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

Kindly elaborate your explanation. I am also facing the same issue.
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.
I also got the same problem, after adding the path I got the second error you mentioned. Did you solve this?
Astha Ameta
Astha Ameta 2017년 1월 23일
편집: Astha Ameta 2017년 1월 23일
It is still unresolved.
I am getting same issue what to do next?

댓글을 달려면 로그인하십시오.

Christine  Zarief
Christine Zarief 2018년 2월 23일

0 개 추천

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'));

카테고리

도움말 센터File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

태그

질문:

2013년 6월 19일

답변:

2019년 12월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by