MATLAB: How to change the MATLAB installation PolySpace Model Link Products are using

Polyspace Model Link SLPolyspace Model Link TL

My MATLAB installation has changed. I upgraded my MATLAB release. Now I need to know how to change the PolySpace Model Link Products to use the new MATLAB installation.

Best Answer

If the location of your MATLAB installation changes, you must re-install PolySpace Model Link SL or PolySpace Model Link TL for that release.
You can re-install PolySpace Model Link SL without using the installation DVD.
To reinstall:
1. Copy the file Polyspace_Common\PolySpaceModelLink\startup\polyspacerc.m into your new MATLAB release matlabroot\toolbox\local.
2. Enter:
edit matlabrc
in the MATLAB command window.
3. Go to the end of the file, and add the following line:
polyspacerc;
4. Run MATLAB in "regserver" mode by entering the following command (from a DOS command prompt or by making a new shortcut with this in the target field):
matlabroot\bin\matlab.exe /regserver /r quit
Where matlabroot is the new MATLAB installation folder. For example:
C:\Program Files\MATLAB\R2010a\bin\matlab.exe /regserver /r quit