Documentation

This is machine translation

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

sysname

Name of the operating system

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

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?