Could anyone help me to solve the error undefined operator
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Undefined operator '==' for input arguments of type 'cell'.
Error in five (line 32)
acc = sum(YPred == YTest)./numel(YTest);
0 commentaires
Réponses (1)
Jonas
le 20 Juin 2021
Modifié(e) : Jonas
le 20 Juin 2021
YPred and/or YTest are cells which can contain any kind of data, also tables, graphical objects. for that reason there is no operator for the cell. it you want to compare the content of the cell and it contains e.g. a matrix, you can use cell2mat on your variables in the formular or use suitable brackets (e.g. YPred{:} )
Voir également
Catégories
En savoir plus sur Geographic Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!