MATLAB: How to set environment variables for MATLAB Production Server

getenvMATLAB Production Servermpssetenv

Best Answer

The variables a MPS app accesses are the system variables which the MPS server is running on. This means that they can be set, like other environment variables, through the machine's command prompt.
An alternative is to set this variable from within the MPS app itself with the MATLAB command:
setenv('NAME', 'VALUE')
Please refer to the "setenv" documentation for more information: