How do I force MATLAB to use a specific license file?
64 views (last 30 days)
MathWorks Support Team on 23 Jun 2020
Edited: MathWorks Support Team on 23 Jun 2020
You can supply the -c command line flag to the main MATLAB executable to force MATLAB to use a specific license file. The argument for this flag is the location of the license file in question. For example, on Windows:
"C:\Program Files\MATLAB\R2016a\bin\matlab.exe" -c "C:\Program Files\MATLAB\R2016a\licenses\license.lic"
This command will force MATLAB to use the license file at "C:\Program Files\MATLAB\R2016a\licenses\license.lic."
For information on where the license files are stored, please refer to the following article: