isenv
Determine if environment variable exists
Syntax
Description
returns
logical tf
= isenv(name
)1
(true
) if name
is an
operating system environment variable. If name
does not exist, then
isenv
returns logical 0
(false
).
On most UNIX® platforms, an environment variable can exist with an empty value
(""
). On the Microsoft®
Windows® platform, setting the value of an environment variable to
""
is equivalent to removing the variable.
Examples
Input Arguments
Version History
Introduced in R2022b