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
Show older comments
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."

1 Comment
Xie Yiru
on 21 May 2019
hello have you solve the problem?
Accepted Answer
More Answers (4)
Image Analyst
on 25 Oct 2017
1 vote
svmtrain will be removed in a future release. Use fitcsvm instead.
LAKKAVARAM SAI CHARAN BHARADWAJ 17MPE0013
on 27 Feb 2018
1 vote
Iam also facing the same issue could you please help me in regarding.Give some insights this can be solved.
Nour Sd
on 27 Oct 2017
0 votes
Xie Yiru
on 21 May 2019
0 votes
I have the same problem. Can you tell me how fix that?
Categories
Find more on Random Number Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!