2012 and 2018 compatibility

3 views (last 30 days)
Yopery
Yopery on 27 Jan 2023
Answered: Rik on 27 Jan 2023
Hi,
I have 2 computers, one with matlab 2012 and the other one with matlab 2018.
I would like to know what kind of problem i could have programming something on matlab 2018, and using it on matlab 2012 afterward.
If i pay attention not to use functions only integrated in matlab 2018, it should work right ?
Matlab 2012 is fully consistent with matlab 2018 ; but matlab 2018 must have new specificities ? Am I right ?
I want to be able to program things on both computers on both matlab versions, and to be able to run them on matlab 2012.
Thank you for you answer in advance,
Best Regards,
Justin

Answers (1)

Rik
Rik on 27 Jan 2023
It is not completely true that all code that runs without error on R2012a (or b) will run with the same effect on R2018a (or b).
The release notes are a good place to start, but you will need to verify this for every function you want to use.
The way I do this is by creating a tester function. I run that on all releases/OSes I want to confirm compatibility with. If you have a look at my File Exchange submissions you will find examples. There may be some exceptions of the oldest submissions, but at least all newer ones are tested to work on everything since R13 (v6.5, june 2002), as well as GNU Octave.

Community Treasure Hunt

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

Start Hunting!