MATLAB Function Reference Previous page   Next Page
getenv

Get environment variable

Syntax

Description

getenv 'name' searches the underlying operating system's environment list for a string of the form name=value, where name is the input string. If found, MATLAB returns the string value. If the specified name cannot be found, an empty matrix is returned.

N = getenv('name') returns value to the variable N.

Examples

See Also

computer, pwd, ver, path


Previous page  getappdata getfield Next page

© 1994-2005 The MathWorks, Inc.