Error message saying "Matrix dimensions must agree"

5 vues (au cours des 30 derniers jours)
reuben alexander
reuben alexander le 26 Nov 2020
Hi
Keep getting error message saying "Matrix dimensions must agree".
not too sure why this is.
any help would be greatly appriciated
  2 commentaires
Mathieu NOE
Mathieu NOE le 27 Nov 2020
hi
would be easier if y could share also the data file conductance data.csv

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 27 Nov 2020
"Matrix dimensions must agree".
not too sure why this is.
The error is pretty simple. You will get this error, when you try to add, multiple two matrices which do not obey the rule of addition and mulitplication.
A = rand(3) ; B = rand(2);
A+B % error
A*B % error
In your case too the same thing is happenin. Try to learn how to run the code in debug mode. Run in debug mode, check the dimensions of each and every array and see why the dimensions are no compatible.
  1 commentaire
reuben alexander
reuben alexander le 27 Nov 2020
hi
sorry i am new to all this.
what is debug mode ?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by