MATLAB Answers


Is possible to use toolbox from previous MATLAB version?

Asked by Shahar
on 28 Feb 2011
Latest activity Commented on by Walter Roberson
on 2 May 2016
I have matlab 2010 and matlab 2008 installed on my pc. Problem is, that the MATLAB Report Generator toolbox is installed only in matlab 2008 and not in matlab 2010. I wanted to know if there's any way I can use the "report" function from the rtpgen (MATLAB Report Generator) toolbox in the matlab 2010 although it's installed on matlab 2008?
Thanks Andreas for the reply. I need the report function in order to export some report (figures+charts+text) to pdf format (can be also be doc file).
Any ideas or walkarounds are welcomed,


I gave an answer below, however, there is value in knowning why you consider this.
Speculating bit, but when you have both products in your license, you can install them for the same release. Even in case you dropped maintenance for some reason, you can then install MATLAB and MATLAB Report Generator in R2008b.

Sign in to comment.

3 Answers

Answer by Walter Roberson
on 28 Feb 2011

I would suggest saving the relevant data to a mat file from the 2010 version, then firing up the 2008 version to read the data and run the report generator.


Sign in to comment.

Answer by Andreas Goser on 28 Feb 2011

I can only discourage you from even trying that. I have seen people trying it and ending up with the need for a new installation.
As some toolboxes are significantly based on MATLAB code, people who try may even think they are successful - for a little while...

  1 Comment

To add to that answer:
What is being asked is not supported. There are internal protections to try to prevent this. Some people try to crack the protections in various ways; as Andreas points out, doing so can provide the illusion of success, but usually ends up causing a lot of trouble.
Toolboxes use internal Matlab routines that can change meaning between releases, so using a toolbox mismatched with the main Matlab version can corrupt Matlab's internal state.

Sign in to comment.

Answer by Christian on 27 Apr 2016

So I need to pay twice for one toolbox with more or less exactly the same functionality to keep my programs running in a new Matlab version? That sounds like a definition of rip-off!


Thanks, I do understand the problems associated with it, but that's the case with every part of Matlab, right? Why should only the users of toolboxes pay for the compatibility?
Just that I get it right: The solution would be to install the release, that I have the toolbox for and use that?
The solution is to install the complete set of tools you need - MATLAB and the toolboxes - from the same release. Ideally the most recent release, but in case portions of the license(s) you use are out of maintenance, use the newest release where all products are under maintenance.
You can always contact MathWorks Support.
"but that's the case with every part of Matlab, right?"
No, because Mathworks keeps a limited lifecycle for code. Backwards compatibility is kept for longer periods for some key interfaces (like .mat file format), but for some other interfaces the new release of code does not even need to support the immediately previous release. Mathworks gets rid of functions, even public features. The internals of toolboxes are not required to be compatible with the internals of previous releases -- as long as the documented calling methods still work, Mathworks often does not even mention that the internals have changed. If a developer decides that the implementation of (say) the Mapping Toolbox was cruddy, then the developer can rewrite it without having to worry about keeping routines or data structures used by any previous release of the toolbox, and without having to worry about making "shims" to allow the previous versions to call into the new version: it is promised that previous versions will not call into the new version.

Sign in to comment.