I want to set an environment variable from within MATLAB. The value I set should be visible even for other processes on my system. If I use the "setenv" function in MATLAB, the variable is only visible in the current MATLAB process. The same thing happens if I use the DOS command "set":
>> !set my_var=some_value
Best Answer