Matrix dimensions must agree.
Show older comments
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';
Answers (1)
Rick Rosson
on 23 Mar 2016
0 votes
Try using * instead of .*
3 Comments
mike moran
on 23 Mar 2016
Rick Rosson
on 23 Mar 2016
Have you tried it?
mike moran
on 23 Mar 2016
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!