MATLAB: Can another process not use the environment variable created using SETENV in MATLAB 7.6 (R2008a)

getenvMATLAB

SETENV creates environment variables that cannot be accessed by a different process.

Best Answer

The reason you are unable to see an environment variable created by MATLAB in another process, is due to the fact that the environment variable is specific to a particular process and cannot be accessed by any process other than the one that created the variable.
Values assigned to variables using SETENV are picked up by any process that is spawned using the MATLAB SYSTEM, UNIX, DOS or ! functions.