Borrar filtros
Borrar filtros

Matrix dimensions must agree.

1 visualización (últimos 30 días)
mike moran
mike moran el 23 de Mzo. de 2016
Comentada: mike moran el 23 de Mzo. de 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';

Respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by