How do I check the compatibility of legacy MATLAB 2012b code with new versions of MATLAB?

1 view (last 30 days)
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?

Answers (2)

John D'Errico
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
Angela
Angela on 27 Jan 2021
Do you know if the release notes are still available for 2012b - 2015b? It seems that the current Mathworks pages only allow you to search from 2015b onwards. If I had earlier release notes I could at least do a check to see what the major changes/incompatibilites were?
Steven Lord
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.

Sign in to comment.


Walter Roberson
Walter Roberson on 27 Jan 2021

Products


Release

R2012b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!