The difference between MATLAB 2018b and MATLAB 2018a
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I encountered a problem that code in matlab 2018b (installed in laptop) is feasible, while the same code running in matlab 2018a (installed in linux) would report errors. I am quite confused. Hope somebody can help me to understand this problem. Thanks.

1 commentaire
Bruno Luong
le 6 Jan 2021
The 'all' option is not necessary for this line of code.
You might remove it altogether so it can work withh ay release.
Réponse acceptée
Cris LaPierre
le 6 Jan 2021
R2018a does not support the 'all' option. See here: https://www.mathworks.com/help/releases/R2018a/matlab/ref/sum.html
R2018b does. See here: https://www.mathworks.com/help/releases/R2018b/matlab/ref/sum.html
2 commentaires
Steven Lord
le 6 Jan 2021
Cris is correct. The ability to specify 'all' as the dimension input to twelve functions (including sum) was introduced in release R2018b as stated in the Release Notes.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!