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!