Borrar filtros
Borrar filtros

How to solve this problem.

4 visualizaciones (últimos 30 días)
Pramod Soni
Pramod Soni el 6 de Nov. de 2021
Respondida: Cris LaPierre el 7 de Nov. de 2021
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.
Please help me to solve this problem. I am unable to get it.

Respuestas (1)

Cris LaPierre
Cris LaPierre el 7 de Nov. de 2021
The function svmtrain was removed starting in R2019a
From here:
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.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by