Information about computer on which MATLAB software is running
str = computer
archstr = computer('arch')
[str,maxsize] = computer
[str,maxsize,endian] = computer
archstr = computer('arch') returns the string archstr which is used by the mex command -arch switch.
|PCWIN||win32||2^31 - 1||L||1||0||0|
|PCWIN64||win64||2^48 - 1||L||1||0||0|
|2^48 - 1||L||0||1||0|
|MACI64||maci64||2^48 - 1||L||0||1||1|
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. You can get this information and the value of archstr from the Help menu, as described in Information About your Installation in the Desktop Tools and Development Environment documentation.