The extrinsic function 'svmpredict' is not available for standalone code generation. It must be eliminated for stand-alone code to be generated. It could not be eliminated because its outputs appear to influence the calling function. Fix this error b

3 ビュー (過去 30 日間)
Hello, I am using MATLAB Coder. When I generate my code MATLAB to c code, I get this problem and I don't know how to fix it.
"The extrinsic function 'svmtrain' is not available for standalone code generation. It must be eliminated for stand-alone code to be generated. It could not be eliminated because its outputs appear to influence the calling function. Fix this error by not using 'svmtrain' or by ensuring that its outputs are unused."

採用された回答

Birdman
Birdman 2017 年 10 月 24 日
In this kind of situation, if possible, the best possible solution is to write the function by yourself and embed it into a MATLAB Function block in Simulink.

その他の回答 (4 件)

Image Analyst
Image Analyst 2017 年 10 月 25 日
svmtrain will be removed in a future release. Use fitcsvm instead.

LAKKAVARAM SAI CHARAN BHARADWAJ 17MPE0013
Iam also facing the same issue could you please help me in regarding.Give some insights this can be solved.

Nour Sd
Nour Sd 2017 年 10 月 27 日
thank you and for svmpredict how can i change it .

Xie Yiru
Xie Yiru 2019 年 5 月 21 日
I have the same problem. Can you tell me how fix that?

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by