computer - Information about computer on which MATLAB is running - MATLAB (original) (raw)

Main Content

Information about computer on which MATLAB is running

Syntax

Description

[str](#mw%5F3696ad34-b9ba-4806-b8c9-b0c5c80b416c) = computer returns the computer type on which MATLAB® is running.

[archstr](#mw%5F84beda3f-a155-4825-a5b3-0a6f460525f3) = computer('arch') returns the system architecture. The mex command and standalone applications use this value to locate MATLAB library files.

[[str](#mw%5F3696ad34-b9ba-4806-b8c9-b0c5c80b416c),[maxsize](#mw%5F8ff58239-4263-4b9f-a268-dca6d56922ac)] = computer returns the maximum number of elements allowed in an array with this version of MATLAB.

[[str](#mw%5F3696ad34-b9ba-4806-b8c9-b0c5c80b416c),[maxsize](#mw%5F8ff58239-4263-4b9f-a268-dca6d56922ac),[endian](#mw%5F58e0ab57-c262-417e-877b-ad92588fea92)] = computer returns the endian byte order format.

Output Arguments

collapse all

Computer type, returned as a character vector.

System architecture, returned as a character vector.

Maximum number of elements allowed in an array, returned as double.

Endian byte order format, returned as a character vector.

Algorithms

For 64-bit Windows platforms:

For 64-bit Linux platforms:

For 64-bit macOS platforms:

Extended Capabilities

expand all

Usage notes and limitations:

Version History

Introduced before R2006a