フィルターのクリア

Can you have both 32 bit and 64 bit MATLAB installed?

1 回表示 (過去 30 日間)
Adrianna
Adrianna 2011 年 4 月 29 日
Hi,
I would like to have both 32 bit and 64 bit MATLAB installed on my Windows machine.
Some of my code require mex and I only have a 32 bit Fortran compiler hence the need to have 32 bit MATLAB. However, my machine has 12 gb of RAM and I would like to utilize it for my other code.
Is it possible to have both installed on my machine?

採用された回答

Kaustubha Govind
Kaustubha Govind 2011 年 4 月 29 日
Yes, it is possible to have both 32- and 64-bit MATLAB installed on the same Windows machine.
  3 件のコメント
Arnaud Miege
Arnaud Miege 2011 年 5 月 16 日
Walter is correct. Remember to run mex -setup every time you switch from one to the other.
Jan
Jan 2012 年 2 月 29 日
I had to install the 32 bit Matlab folder in a path, which does not contain parentheses - on Windows 7 the standard folder "C\Program Files (86)" caused problems. I have a folder "C:\ProgramFiles" for such cases, which does not have a spcae inside also.
I solve the Mex setup problem using a function CompileMex instead, which checks the environment dynamically and sets the the mexopts file manually, e.g. "-f mexopts_MSVC2010_32.bat". I create these option files by "mex -setup" at first and rename the file accordingly afterwards.

サインインしてコメントする。

その他の回答 (2 件)

Han Geerligs
Han Geerligs 2012 年 2 月 29 日
Hi all,
I just received a solution from TMW:
A workaround would be to create a startup.m file in which you set the compiler automatically. The code in that startup.m file can look like this:
if strcmp(mexext,'mexw64')
mex('-setup:msvc100free');
else
mex('-setup:lcc');
end
In that way, at MATLAB startup it is checked if it’s the 32bit MATLAB or 64bit MATLAB and the compiler is selected automatically in the background. So no user interaction is needed.
In addition, I will create an enhancement request for that feature.
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 2 月 29 日
Great! Thanks for posting this, Han!

サインインしてコメントする。


James Tursa
James Tursa 2011 年 4 月 29 日
Yes, I believe so based on comments posted on the newsgroup by others. I don't currently have this setup myself.

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by