'Matrix dimensions must agree.' error message?
1 view (last 30 days)
Show older comments
Hi, I'm trying to multiply 2 vectors together.
E=r.*H;
And I keep getting the error message 'Matrix dimensions must agree.'.
But, r and H are both listed as '26034x1 double' in the workspace.
So the matrix dimensions are identical for both vectors, but I keep getting this error message.
Anyone have any idea why this is happening?
2 Comments
Walter Roberson
on 23 Apr 2021
Can you save r and H to a file and attach the file for us to test with?
Answers (1)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!