Invalid mex file error

조회 수: 1 (최근 30일)
Astha Ameta
Astha Ameta 2017년 1월 16일
댓글: Walter Roberson 2017년 1월 19일
When I run the following code statement: model = svmtrain(labels, data, '-s 0 -t 2 -c 1 -g 0.1');
I get error: Invalid MEX-file 'C:\Program Files\libsvm-3.21\windows\svmtrain.mexw64': The specified procedure could not be found.
I tried all the ways to fix it, set the folder to matlab path, but couldn't understand where the problem is.
Please advise.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 1월 16일
svmtrain.mexw64 needs a DLL that you do not have (or which cannot be found.)
You should either use a tool such as Dependency Walker to track down the missing DLL, or else you should use the Statistics toolbox with R2013b or later, which has SVM built in.
  댓글 수: 2
Astha Ameta
Astha Ameta 2017년 1월 19일
I used Dependency Walker previously and installed all the missing DLL files, but error is still there.
I am not able to get what the issue is. Please advise.
Walter Roberson
Walter Roberson 2017년 1월 19일
Sorry, I do not have a compiler set up on my Windows virtual machines, so I cannot build libsvm.

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

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by