Open 32 bit Matlab using a batch file
3 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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 个评论
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 Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!