How to tell if running 32- or 64-bit Matlab?

How can I tell if I am running 32- or 64-bit Matlab?
Several people suggest using the "computer" function, but doesn't that just tell you about your OS? For example, if I am running 32-bit Matlab on a 64-bit platform, wouldn't "computer" tell me 64 bits?

Más respuestas (2)

Sarah
Sarah el 4 de Mayo de 2011

0 votos

It seems like "computer" does the same thing....

1 comentario

Andrew Newell
Andrew Newell el 4 de Mayo de 2011
Most of the time it will, but it can identify a 32-bit MATLAB on a 64-bit Mac.

Iniciar sesión para comentar.

Sarah
Sarah el 6 de Jun. de 2011

0 votos

I have a Sony Vaio running 64-bit Windows 7 and I'm using 32-bit Matlab R2009b. "mexext" gives me "mexw32" (which is correct), but "computer" gives me "PCWIN" (meaning 32-bit OS), which is wrong....

2 comentarios

Matt Fig
Matt Fig el 6 de Jun. de 2011
See the tips section here:
http://www.mathworks.com/help/techdoc/ref/computer.html
Image Analyst
Image Analyst el 6 de Dic. de 2012
Yes, it says "In some cases, both 32-bit and 64-bit versions of MATLAB can run on the same platform. In this case, the value returned by computer reflects which of these is running. For example, if you run a 32-bit version of MATLAB on a Windows x64 platform, computer returns PCWIN, indicating that the 32-bit version is running." but is there any way to find out both what operating system you're running AND how many bits MATLAB you're running? In other words, you're running 64 bit OS and 32 bit MATLAB. From what I can tell, this isn't available. Maybe some way combining system() with computer()?????

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Preguntada:

el 4 de Mayo de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by