# computer

## Purpose

Identify the computer on which MATLAB is running.

## Synopsis

    S = computer
    [s,maxsize] = computer

## Description

`S = computer` returns a string containing the type of computer on which MATLAB is running. Some computers include

    ------------------------------
    String   Computer
    ------------------------------

    SUN4     Sun SPARC workstation
    APOLLO   Apollo workstation
    PC       Personal Computer
    PCWIN    PC running MS-Windows
    PCAT     AT
    PC386    386
    MAC      Macintosh Plus or SE
    MAC2     Macintosh II
    HP700    HP 9000/Series 700
    DECRISC  DECStation
    SGI      Silicon Graphics
    HP300    HP 9000/Series 300
    VAXVMSD  VAX/VMS R-float
    VAXVMSG  VAX/VMS G-float
    CRAY     Cray X-MP or Y-MP

    ------------------------------

This list changes as new computers are added and others become obsolete.

`[s,maxsize] = computer` returns the integer `maxsize`, which contains the maximum number of elements allowed in a matrix with this version of MATLAB.

(c) Copyright 1994 by The MathWorks, Inc.