3
$\begingroup$

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?

$\endgroup$
  • 1
    $\begingroup$ It would help if you stated whether you already tried and/or whether you any foundation to think that they may not be compatible... $\endgroup$ – Wolfgang Bangerth Nov 16 '12 at 3:24
3
$\begingroup$

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.

| cite | improve this answer | |
$\endgroup$
3
$\begingroup$

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.

| cite | improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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