Open 32 bit Matlab using a batch file

조회 수: 3 (최근 30일)
Prashanth Krishnan
Prashanth Krishnan 2015년 7월 29일
편집: Prashanth Krishnan 2015년 7월 31일
I have both 32bit and 64bit versions of Matlab on my computer and I'd like to open only the 32 bit version via a batch file. But when I give the command 'start matlab', it opens the 64 bit version by default. Is there any way I can have it open the 32bit version ?
P.S - I don't know if it makes a difference, but my computer is 64bit.

답변 (1개)

Image Analyst
Image Analyst 2015년 7월 29일
What happens if you just put the full name of the executable in your batch file:
C:\Program Files (x86)\MATLAB\R2015a\bin\matlab.exe
  댓글 수: 2
Prashanth Krishnan
Prashanth Krishnan 2015년 7월 29일
편집: Prashanth Krishnan 2015년 7월 30일
I'm just worried it won't be robust. This batch file is going to be used on other computers and I'm not sure the editions will be the same..Is there any other way ?
Walter Roberson
Walter Roberson 2015년 7월 29일
You would need to have your batch file search for the proper directory.
You might be able to retrieve the registry entry for MATLAB and examine it to see what the pathname is. Or there might possibly be a more direct registry path.
The version of MATLAB that will be launched if you ask for matlab without a path is determined by the registry. See the -regserver option of MATLAB to register an executable as the default.

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

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by