Small Problem with + sign
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
Matlab complains constantly on the plus or minus sign, why? Here is my problem:
Matlab says:
Error using + Matrix dimensions must agree.
And here is what I wrote:
A=[3 5 2; 2 1 7];
B=[2 1 3; 5 9 0];
>>a=A+B
Antworten (1)
Sean de Wolski
am 2 Mai 2012
A and B apparently aren't what you think they are!
size(A);
size(B);
or if this is burried somewhere -
dbstop if error
And then run, inspect A, B at the line of failure.
1 Kommentar
Regina
am 2 Mai 2012
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!