Matrix dimensions must agree.

4 Ansichten (letzte 30 Tage)
mike moran
mike moran am 23 Mär. 2016
Kommentiert: mike moran am 23 Mär. 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';

Antworten (1)

Rick Rosson
Rick Rosson am 23 Mär. 2016
Try using * instead of .*
  3 Kommentare
Rick Rosson
Rick Rosson am 23 Mär. 2016
Have you tried it?
mike moran
mike moran am 23 Mär. 2016
I figured it out. My matrix was in uint8 and it needed to be in double.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by