Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

getenv - Environment variable

Syntax

getenv 'name'
N = getenv('name')

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, the MATLAB software 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

os = getenv('OS')

os =
Windows_NT

See Also

setenv, computer, pwd, ver, path

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS