Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

Asked by MathWorks Support Team on 14 Oct 2013
Latest activity Answered by MathWorks Support Team on 25 Oct 2013

I would like to determine if I am running a 32-bit version of MATLAB or a 64-bit version of MATLAB.

0 Comments

MathWorks Support Team

Products

1 Answer

Answer by MathWorks Support Team on 25 Oct 2013
Accepted answer

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 COMPUTERVERSION OF MATLAB (32 bit / 64 bit)
 PCWIN32 bit MATLAB on Windows
 PCWIN6464 bit MATLAB on Windows
 GLNX8632 bit MATLAB on Linux
 GLNXA6464 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 MEXEXTVERSION OF MATLAB (32 bit / 64 bit)
 mexw3232 bit MATLAB on Windows
 mexw6464 bit MATLAB on Windows
 mexglx32 bit MATLAB on Linux
 mexa6464 bit MATLAB on Linux
 mexmac32 bit MATLAB on Mac
 mexmaci32 bit MATLAB on Intel-based Mac
 mexmaci6464 bit MATLAB on Intel-based Mac

0 Comments

MathWorks Support Team

Contact us