Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

computer

Information about computer on which MATLAB software is running

Syntax

str = computer
archstr = computer('arch')
[str,maxsize] = computer
[str,maxsize,endian] = computer

Description

str = computer returns the character vector str with the computer type on which MATLAB® is running.

archstr = computer('arch') returns the character vector archstr which is used by the mex command and standalone applications to locate MATLAB library files.

[str,maxsize] = computer returns the integer maxsize, the maximum number of elements allowed in an array with this version of MATLAB.

[str,maxsize,endian] = computer returns either 'L' for little-endian byte ordering or 'B' for big-endian byte ordering.

PlatformWord
Size
strarchstrmaxsizeendianispcisunixismac

Microsoft Windows

64-bit

PCWIN64win642^48 - 1L100

Linux

64-bit

GLNXA64

glnxa64

2^48 - 1L010

Apple Mac

64-bit

MACI64maci642^48 - 1L011

See Also

| | | |

Introduced before R2006a

Was this topic helpful?