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
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Show older comments
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
Walter Roberson
on 1 Jan 2013
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 ?
Yes
In that case I would contact Mathworks technical support.
Looks like it should have been -regserver instead of /register
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
More Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
See Also
on 1 Jan 2013
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)