MATLAB: Predict function for svm supported with matlab coder or not

matlab coderpredictsvm

Hi , i have version 2018 b and my matlab coder doesnt support predict func for svm in machine learning toolbox while in this link (https://www.mathworks.com/help/simulink/ug/functions-supported-for-code-generation-alphabetical-list.html?s_tid=srchtitle) predict function listed as a supported function in matlab coder
i hope u can help me

Best Answer

shows that predict is supported for MATLAB Coder in R2018b:
Code generation for predict — Save a trained model by using saveCompactModel and define an entry-point function that loads the saved model by using loadCompactModel and calls the predict function. Then use codegen to generate code for the entry-point function.