Bug with max function
5 ビュー (過去 30 日間)
古いコメントを表示
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?
回答 (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)
0 件のコメント
参考
カテゴリ
Help Center および 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!