Matrix dimensions must agree.

조회 수: 2 (최근 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
Rick Rosson
Rick Rosson 2016년 3월 23일
Have you tried it?
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에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by