Azzera filtri
Azzera filtri

Matrix dimensions must agree.

1 visualizzazione (ultimi 30 giorni)
mike moran
mike moran il 23 Mar 2016
Commentato: mike moran il 23 Mar 2016
I am trying to multiply the same matrix by the transpose of itself and it is giving me the error of matrix dimensions must agree. Code: XX=X.*X';

Risposte (1)

Rick Rosson
Rick Rosson il 23 Mar 2016
Try using * instead of .*
  3 Commenti
Rick Rosson
Rick Rosson il 23 Mar 2016
Have you tried it?
mike moran
mike moran il 23 Mar 2016
I figured it out. My matrix was in uint8 and it needed to be in double.

Accedi per commentare.

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by