Bug with max function
이전 댓글 표시
I found a strange bug in MATLAB 2012a.
I have a script with a matrix A (6000x1 double) and a matrix B (6000x1 double). When I try to use the following function by running my script file: max(A,B) I get the following error:
Error using max Matrix dimensions must agree.
However, when I perform the same operation in the command window, everything works fine.
What is wrong?
댓글 수: 1
Adam
2014년 12월 3일
Does your script contain a variable called max?
답변 (2개)
Azzi Abdelmalek
2014년 12월 3일
Check in your script that A and B are the same size, in command windows type
size(A)
size(B)
Matt
2014년 12월 3일
편집: Image Analyst
2014년 12월 3일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!