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

 채택된 답변

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

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Installing Products에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by