Small Problem with + sign
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
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
0 件のコメント
回答 (1 件)
Sean de Wolski
2012 年 5 月 2 日
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 件のコメント
Regina
2012 年 5 月 2 日
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!