Bug with max function
Afficher commentaires plus anciens
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 commentaire
Adam
le 3 Déc 2014
Does your script contain a variable called max?
Réponses (2)
Azzi Abdelmalek
le 3 Déc 2014
Check in your script that A and B are the same size, in command windows type
size(A)
size(B)
Matt
le 3 Déc 2014
Modifié(e) : Image Analyst
le 3 Déc 2014
0 votes
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!