The difference between MATLAB 2018b and MATLAB 2018a
3 views (last 30 days)
Show older comments
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 Comment
Bruno Luong
on 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.
Accepted Answer
Cris LaPierre
on 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 Comments
Steven Lord
on 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.
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!