Matlab executes wrong function (as a part of a mfile)

3 ビュー (過去 30 日間)
Panos Mare
Panos Mare 2018 年 7 月 27 日
コメント済み: Panos Mare 2018 年 7 月 27 日
Hello to everyone. I would like to ask a question about the svmtrain function. I have installed and done the make files using libsvm from the following website http://www.csie.ntu.edu.tw/~cjlin/libsvm/. I have already add the path of svm library. When i try to run the svmtrain function at command window, it works perfectly, by executing the "correct" svmtrain. Although, when i try to run a m-file which contains a command with svmtrain function, Matlab uses its own version of svmtrain (toolbox\stats\stats\svmtrain.m). I run at command window
which -all svmtrain
and it produces this answer C:\Users\Pan\Documents\MATLAB\Compiled_Libraries\LibSVM1\svmtrain.mexw64 C:\Program Files\MATLAB\R2017b\toolbox\stats\stats\svmtrain. %shadowed
Why Matlab's svmtrain function isn't shadowed when i call it from a m-file? Is there a way to fix this? Thanks in advance!!!
  4 件のコメント
Steven Lord
Steven Lord 2018 年 7 月 27 日
Panos Mare wrote as a flag on per isakson's comment:
Same as executing it from command window
 
Panos Mare, please use comments to add information to the discussion. Use flags to alert contributors to spam, unclear or inappropriate comments or answers, or the like.
Panos Mare
Panos Mare 2018 年 7 月 27 日
Roger!

サインインしてコメントする。

採用された回答

Panos Mare
Panos Mare 2018 年 7 月 27 日
After few hours of itching my head, i found the answer....It was a silly, typo mistake on the string variable, which sets the parameters of SVM classifier....Thank you all for the immediate answers! Cheers!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by