'Matrix dimensions must agree.' error message?

1 view (last 30 days)
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
Walter Roberson on 23 Apr 2021
Can you save r and H to a file and attach the file for us to test with?

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 23 Apr 2021
H is 26304 x 1
r is 26034 x 1
30 vs 03

Products

Community Treasure Hunt

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

Start Hunting!