setenv
Set environment variable
Description
setenv(
sets the values of operating system environment variables. If
varname,varvalue)varname exists as an environment variable, then
setenv replaces its current value with
varvalue. If varname does not exist,
then setenv creates an environment variable named
varname and assigns varvalue to
it.
setenv passes varname and
varvalue to the operating system unchanged. Special
characters, such as ;, /,
:, $, and %, are unexpanded
in varvalue.
A process launched using the MATLAB®
system, unix, dos, or
! function reads the values assigned to variables using the
setenv function.
setenv( assigns a null value to
varname)varname. This syntax is equivalent to
setenv(varname,""). On most UNIX® platforms, an environment variable can exist with an empty value
(""). On the Microsoft®
Windows® platform, this syntax is equivalent to removing the variable.
setenv( assigns all dictionary values
to their associated environment variable names. (since R2023a)d)