How do I check the compatibility of legacy MATLAB 2012b code with new versions of MATLAB?
1 view (last 30 days)
Show older comments
We have a large amount of legacy MATLAB code that was written to run using R2012b. We would like to run this with a newer version of MATLAB. Is there a way to check the compatibility of the code and identify where functions have changed etc?
0 Comments
Answers (2)
John D'Errico
on 27 Jan 2021
Sorry. There is no tool that will scan through your code and automatically tell you what parts will run or not, at least not beyond just running the code and watching for errors.
I'd bet that would be a pretty difficult tool to write, and to maintain, since it would need to be updated after every release. It would also need to be updated for every prior release, a task with quadratic growth in complexity with each release. A programmer who chooses to be tricky in their code will easily confuse such a tool anyway. Can you imagine how it would deal with the use of eval?
With each release, there are lists of things that have changed. As much as possible, TMW tries to maintain backwards compatibility, but sometimes that does become impossible.
2 Comments
Steven Lord
on 27 Jan 2021
The PDF of the Release Notes goes back to release R2012b. The first fifty or so pages of the document contains the table of contents, and the document itself is over six hundred pages long.
Walter Roberson
on 27 Jan 2021
See https://www.mathworks.com/matlabcentral/answers/364764-is-there-a-tool-to-check-for-compatibility-between-different-matlab-versions for at least part of the checking
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!