Matrix dimensions must agree.

4 次查看(过去 30 天)
mike moran
mike moran 2016-3-23
评论: mike moran 2016-3-23
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';

回答(1 个)

Rick Rosson
Rick Rosson 2016-3-23
Try using * instead of .*
  3 个评论
mike moran
mike moran 2016-3-23
I figured it out. My matrix was in uint8 and it needed to be in double.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by