Computational Science Stack Exchange is a question and answer site for scientists using computers to solve scientific problems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some C++ code that links to matlab2008b. Are matlab 2012a and 2012b backwards compatible with 2008b?

If it's not trivially compatible, are there some simple steps to make it compatible?

share|improve this question
It would help if you stated whether you already tried and/or whether you any foundation to think that they may not be compatible... – Wolfgang Bangerth Nov 16 '12 at 3:24
up vote 3 down vote accepted

In each version some functions are added, changed and removed. As such newer versions are never fully backwards compatible.

That being said, not that much has changed from 2008 to 2012, so there is a good chance that you can get your code to work with no or few adjustments.

share|improve this answer

Depends. If the C code is too old, it might not compile or link anymore because of name changes in the eng or mx library. I ran into this when i tried to compile some code from 1992 that supposedly provided a Matlab interface to Mathematica. The reason: it used a datatype called Matrix which has turned out to be mxArray in newer versions of Matlab.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.