Matlab 2012: bug in 2012 implementation of Max() !???
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Try to to this:
max([1 2 5 2])
it then says:
Index exceeds matrix dimensions.
however for min([1 2 5 2]) or even mean([1 2 5 2]) there is no problem and they work fine.
0 commentaires
Réponses (1)
Sean de Wolski
le 13 Mar 2012
This is because you have defined a variable by the name max:
whos max
and to fix it:
clear max
and then rename your variable something else (maybe the_max)
1 commentaire
Voir également
Catégories
En savoir plus sur Text Analytics Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!