getenv
Environment variable
Description
returns the value of the operating system environment variable
val
= getenv(varname
)varname
. If varname
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.