License Manager Error -39 indicates that you are logged into your computer as a user who is not authorized to use the license. To resolve this error, a person who maintains the Network License Manager must make modifications to the options file to allow the unauthorized end user to access the license. If you are unsure who maintains the Network License Manager, please reach out to your License Administrator.
Who is my License Administrator?
This error can also be caused by an incorrectly specified username on the INCLUDE line of the options file.
The options file is located on the server hosting the Network License Manager. Its full file path is defined in the license file. If you're unsure where the license file is on the server, look in the directory where the Network License Manager is installed. If you're unsure where the Network License Manager is installed, look in its default installation location as seen below. Please replace with "R20XXx" with the MATLAB release in question (ex: R2023b.)
Windows
C:\Program Files\MATLAB\R20XXx\etc
Linux
/usr/local/MATLAB/R20XXx/etc/
macOS
/Applications/MATLAB_R20XXx.app/etc
This options file should contain the keyword "INCLUDE" followed by the product name and a list of usernames. Note: Usernames are case sensitive.
For example, if you have the following license file:
INCREMENT MATLAB MLM 45 01-jan-0000 1 4C4CD07W1607F7EXGQ1B \
USER_BASED DUP_GROUP=U SN=220668
INCREMENT SIMULINK MLM 45 01-jan-0000 1 4DDU31EWA2963R8F5846 \
USER_BASED DUP_GROUP=U SN=220668
INCREMENT Curve_Fitting_Toolbox MLM 45 01-jan-0000 1 3C6CQ0FBSA315W51FC7D \
USER_BASED DUP_GROUP=U SN=220668
Your options file should resemble...
INCLUDE MATLAB USER jane
INCLUDE SIMULINK USER jane
INCLUDE Curve_Fitting_Toolbox USER jane
...where 'jane' is the username.
Note: The Network License Manager should be fully stopped before editing the options file. The "re-read license" function does not work for MathWorks licenses.
For more information on using an options file, please refer to the following documentation:
Is there a way to administer licenses from the Network License Manager? How do I create an Options file?