we want to to open a simulink model using mscript but if there is two MATLAB versions installed then how to seelect a particular MATLAB version

Actually we want a mscript patch which we can add in our existing mscript & we can open our model in whatever MATLAB version we want, if there is multiple mMATLAB version installed on our system

 Akzeptierte Antwort

In the past, Mathworks has indicated that the method is to use the matlab.exe /register flag to register the version you want to invoked.

8 Kommentare

We have a VBA code(macro) which uses command "Matlab.application" to initiate Matlab. Two Matlab version is installed on our system 6.1 & 2006b. We have set 2006b as default Matlab version but when we run VBA code it opens Matlab 6.1. We want it to get open in 2006b
You have already started up R2006b MATLAB with the /register flag ?
In that case I would contact Mathworks technical support.
Thanks Walter I found one command from the link you provided which works. Using "Matlab.Activeserver" instead of "Matlab.Application". My problem got solved when we have two Matlab version where one is 6.1 & other is 2006b. But this command did not solve the same issue when We have two matlab version where one is 6.1 & other is 2011b. Please suggest if there is any command which works for all the Matlab version to invoke the Default Matlab Version?
I suggest contacting Mathworks technical support.
My problem solved by "Matlab.Desktop.Application" command

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by