- Launch Windows Command Prompt or Powershell
- Type in "matlab -c path\to\license\file\license.lic". Replace "path\to\license\file\license.lic" with the full path to the license file you want to use. Make sure to include the name of the file too. If you're unsure where your license file is that you want to use, see the link at the bottom of this answer.NOTE: If a license_info.xml file exists in MATLABROOT/licenses, then use "matlab -licmode file -c path\to\license\file\license.lic"
- Press Enter on your keyboard to launch MATLAB with the single license file.
If you have multiple releases of MATLAB installed and this command is launching a different release than you want, specify the full path to the matlab.exe from where you have MATLAB installed. For example, if you want to use release R2023b, matlab.exe's full path will likely be "C:\Program Files\MATLAB\R2023b\bin". This means the command you're using in Command Prompt or Powershell will look something like this: "C:\Program Files\MATLAB\R2023b\bin\matlab.exe -c C:\Users\james\AppData\Roaming\MathWorks\MATLAB\R2023b_licenses\license_james-computer_1234_5678_R2023b.lic"macOS- Launch the Terminal application. You can find it in by searching for it with the magnifying glass in the top-right corner of your screen.
- Type in "/Applications/MATLAB_R2023b.app/bin/matlab -c path/to/license/file/license.lic". Replace "R2023b" with a different release of MATLAB if you are not using R2023b. Replace "path/to/license/file/license.lic" with the full path to the license file you want to use. Make sure to include the name of the file too. If you're unsure where your license file is that you want to use, see the link at the bottom of this answer.
- Press Return/Enter on your keyboard to launch MATLAB.
Linux- Launch Terminal
- Type in "matlab -c path/to/license/file/license.lic". Replace "path/to/license/file/license.lic" with the full path to the license file you want to use. Make sure to include the name of the file too. If you're unsure where your license file is that you want to use, see the link at the bottom of this answer.
- Press Enter on your keyboard to launch MATLAB.
If you have multiple releases of MATLAB installed and this command is launching a different release than you want, specify the full path to the matlab from where you have MATLAB installed. For example, if you want to use release R2023b, matlab full path will likely be "/usr/local/MATLAB/R2023b/bin/matlab". This means the command you're using in Terminal will look something like this: "/usr/local/MATLAB/R2023b/bin/matlab -c /home/james/.matlab/R2023b_licenses/license_james-computer_1234_5678_R2023b.lic"For more information on where the license files are typically stored, please refer to the following article:Where can I find MATLAB license files?
How do I force MATLAB to use a specific license file?
63 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 12 Sep. 2016
Bearbeitet: MathWorks Support Team
am 13 Mär. 2025
How do I force MATLAB to use a specific license file?
Akzeptierte Antwort
MathWorks Support Team
am 13 Mär. 2025
Bearbeitet: MathWorks Support Team
am 13 Mär. 2025
For troubleshooting reasons, you may want to start MATLAB with only a specific license file. This can be accomplished by running MATLAB with a specific command that points to a single license file you want to use. To do so, follow these steps:
Windows
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Manage Products finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!