getenv
Environment variable
Syntax
Description
returns the value of the operating system environment variable
val
= getenv(name
)name
as a character vector. If name
does not exist, then getenv
returns an empty character
vector.
On UNIX® platforms, the shell you use to start MATLAB® determines the operating system environment. For example, on a
Mac platform, starting MATLAB from the Applications
folder creates an environment
that is different from that created by starting MATLAB from Terminal.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced before R2006a