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

 Accepted Answer

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 Comments

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 ?
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?
My problem solved by "Matlab.Desktop.Application" command

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!