Can anyone help me out with this error?

1 vue (au cours des 30 derniers jours)
Aman Swaraj
Aman Swaraj le 11 Fév 2020
Commenté : Aman Swaraj le 20 Avr 2020
I'm working on an image dataset, the error goes something like this:
Error using '
Transpose on ND array is not defined. Use PERMUTE instead.
Error in classreg.learning.internal.orientX (line 12)
X = X';
Error in classreg.learning.classif.CompactClassificationECOC/predict (line 324)
[X,varargin] = classreg.learning.internal.orientX(...
Error in CNN_main (line 34)
predictedLabels = predict(classifier, testFeature);

Réponse acceptée

Farhath Fatima
Farhath Fatima le 11 Fév 2020
Hi Aman,
As per my understanding, I assume that you have not used permute function to your image.
Here is the related answer link for the error observed.
I suggest using the permute function as mentioned in the answer, for your image,instead of using the transpose.
  1 commentaire
Aman Swaraj
Aman Swaraj le 20 Avr 2020
Thank you, it worked.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing 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!

Translated by