MCR version compatibility with higher matlab version

Hi there,
I have a trouble in using executable program (EXE) built with matlab. Although MCR installer (ver 7.9) was provided together and I installed it before running EXE, the program seems not to run correctly. I imagine it might because of version. When I type 'mcrversion', matlab returns 8.0 since my matlab is 2012b. So I'm wondering MCR is compatible with higher version and how I make MCR with version 7.9 be used for running EXE.
Thank you in advance!

 Accepted Answer

You must use the same MCR version as that of the Matlab version from which the executable was built. If you upgrade your Matlab but are still installing an executable from the previous Matlab you still need the previous MCR too. If you rebuild the executable in the new Matlab then you need to upgrade the MCR to the equivalent version also.

3 Comments

Hi Adam,
Thank you for your answer. I have matlab 2012b with MCR 8.0 and I also installed MCR 7.9 for this EXE. I think your answer is that EXE automatically utilizes correct version of MCR. Am I right?
If it exists it does yes. You have the option to package the MCR with the exe or to download it from the web though too, both of which will ensure you automatically get the correct MCR.
That is only the case if you use the installer that gets built rather than just the program exe though.
Then It must be another reason why EXE failed to run. Thank you!

Sign in to comment.

More Answers (0)

Categories

Asked:

on 20 Feb 2015

Commented:

on 20 Feb 2015

Community Treasure Hunt

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

Start Hunting!