sysname

Name of the operating system

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

sysname(<Arch>)

Description

sysname() returns information on the operating system on which MuPAD® is currently executed. It can return one of the following strings:

  • "UNIX" for UNIX® operating systems including Mac OS X and Linux®,

  • "MSDOS" for MS-DOS® operating systems including Microsoft® Windows®,

sysname(Arch) returns a more specific name of the operating system as a character string.

Examples

Example 1

On a 64-bit Microsoft Windows operating system, sysname returns the following values:

sysname(), sysname(Arch)

On a 32-bit Microsoft Windows operating system, sysname(Arch) returns:

sysname(Arch)

Example 2

On a 64-bit Linux operating system, sysname returns the following values:

sysname(), sysname(Arch)

Example 3

On a 64-bit Apple Macintosh operating system, sysname returns the following values:

sysname(), sysname(Arch)

Options

Arch

Makes sysname return more specific information on the architecture

Return Values

character string.

See Also

MuPAD Functions

Was this topic helpful?