'Matrix dimensions must agree.' error message?

1 Ansicht (letzte 30 Tage)
Alex Salvatore Milana
Alex Salvatore Milana am 22 Apr. 2021
Beantwortet: Walter Roberson am 23 Apr. 2021
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 Kommentare
Walter Roberson
Walter Roberson am 23 Apr. 2021
Can you save r and H to a file and attach the file for us to test with?
Alex Salvatore Milana
Alex Salvatore Milana am 23 Apr. 2021
Here ya go, good luck

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by