MATLAB Answers

How can I determine if I am running a 32-bit version of MATLAB or a 64-bit version of MATLAB?

425 ビュー (過去 30 日間)
I would like to determine if I am running a 32-bit version of MATLAB or a 64-bit version of MATLAB.

採用された回答

MathWorks Support Team
MathWorks Support Team 2015 年 3 月 5 日
For MATLAB 7.8 (R2009a) and later versions, you can determine this information by selecting the "Help>About MATLAB" Menu from the desktop.
The information also appears on the splash screen as MATLAB is starting.
If you are running MATLAB without the desktop interface, the information appears in the command window when MATLAB starts.
For previous product releases, you can determine if the version of MATLAB you are running is 32-bit or 64-bit by using the following function:
computer
The following is the interpretation table to the ouptut of the above command:
OUTPUT OF COMPUTER VERSION OF MATLAB (32 bit / 64 bit)
PCWIN 32 bit MATLAB on Windows
PCWIN64 64 bit MATLAB on Windows
GLNX86 32 bit MATLAB on Linux
GLNXA64 64 bit MATLAB on Linux
You can specifically probe for the MATLAB bitness by using the following command:
computer('arch')
This will return win64 for 64-bit MATLAB and win32 for 32-bit MATLAB.
You can also determine if you are running 32 or 64 bit MATLAB using the MEXEXT function which gives you the extension of the mex file generated by MATLAB:
OUTPUT OF MEXEXT VERSION OF MATLAB (32 bit / 64 bit)
mexw32 32 bit MATLAB on Windows
mexw64 64 bit MATLAB on Windows
mexglx 32 bit MATLAB on Linux
mexa64 64 bit MATLAB on Linux
mexmac 32 bit MATLAB on Mac
mexmaci 32 bit MATLAB on Intel-based Mac
mexmaci64 64 bit MATLAB on Intel-based Mac

  3 件のコメント

Philip Borghesani
Philip Borghesani 2015 年 3 月 5 日
The preferred way to do this programmatically is to use the sequence:
[~,maxArraySize]=computer;
is64bitComputer=maxArraySize> 2^31
francesco amoruso
francesco amoruso 2017 年 9 月 19 日
Hi, is there a way to convert the 64-bit version of a simulink model to its 34-bit version? in fact ,I am having some problem with version's compatibility. Many thanks.

サインイン to comment.

その他の回答 (0 件)

サインイン してこの質問に回答します。


Translated by