MATLAB Function Reference Previous page   Next Page
computer

Return information about computer on which MATLAB is running

Syntax

Description

str = computer returns the string str with the computer type on which MATLAB is running.

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

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

The list of supported computers changes as new computers are added and others become obsolete. A typical list follows.

str
Computer
GLNX86
Linux on PC
GLNXA64
Linux on AMD Opteron
GLNXI64
Linux on Intel Itanium2
HPUX
HP PA-RISC (HP-UX 11.00)
MAC
Macintosh OS X
PCWIN
Microsoft Windows
SOL2
Sun Solaris 2 SPARC workstation

See Also

ispc, isunix


Previous page  complex cond Next page

© 1994-2005 The MathWorks, Inc.