How to solve this problem.
4 ビュー (過去 30 日間)
古いコメントを表示
I am trying to run the folloing code and getting the error:
Error: label vector and instance matrix must be double
Dot indexing is not supported for variables of this type.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/792169/image.png)
Please help me to solve this problem. I am unable to get it.
0 件のコメント
回答 (1 件)
Cris LaPierre
2021 年 11 月 7 日
The function svmtrain was removed starting in R2019a
svmtrain and svmclassify have been removed
The svmtrain and svmclassify functions have been removed. Use the fitcsvm function and the predict function of ClassificationSVM instead.
To update your code, replace all instances of svmtrain with fitcsvm, and replace all instances of svmclassify with predict. For more details, see the Compatibility Considerations sections of svmtrain and svmclassify.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!