哪个功能在弃用后取代了 R2016a 的 svmtrain?

Which function replaced R2016a's svmtrain after deprecation?

我在 MATLAB R2016a 中使用 svmtrain,但现在我在使用 MATLAB R2019a。当像之前那样使用 svmtrain 时,我得到一个错误,提示 svmtrain 不存在。

R2019a 中 svmtrain 被什么功能取代了?

svmtrain() 已弃用并从工具箱中删除,因此它不再适用于较新版本的 MATLAB。官方的替换是 suite of functions。您必须 select 根据问题要求选择您需要的那个。

对于一个 class SVM,它是 fitcsvm

matlab中有两个重要的数据分类函数。在旧版本的 matlab 中安装 svmtrain 我们在 2020ver 中使用 fitcsvm(): https://www.mathworks.com/help/releases/R2019a/stats/fitcsvm.html 此处替换为 svmclassify: https://www.mathworks.com/help/releases/R2019a/stats/classreg.learning.classif.compactclassificationsvm.predict.html