How can I test the license for a toolbox in MATLAB?

조회 수: 107 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2012년 1월 25일
편집: MathWorks Support Team 2022년 8월 19일
I am trying to determine whether or not the licensing is working for a particular toolbox. If I cannot check out the license, I would like to see why I cannot check out a toolbox license in MATLAB. How can I accomplish this?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2022년 8월 19일
편집: MathWorks Support Team 2022년 8월 19일
To test the license for a particular toolbox, you can use the "license checkout" command within MATLAB: https://www.mathworks.com/help/matlab/ref/license.html
To use this command, you must use the feature name of the product as it appears in the license file rather than the actual toolbox name. To find your license file, see the following article:
If you are on a network license and do not have access to the license file, you can also use the feature name as it appears in the output of "lmstat". To learn more about using "lmstat", see the following article:
For example, if you would like to test the license for Control System Toolbox, you would type the following in MATLAB:
>> license checkout Control_Toolbox
If this command returns the following output, the licensing is working properly:
ans =
     1
If the toolbox cannot get a license, you will get both a network license manager error number as well as a brief explanation as to why this toolbox license cannot be checked out. See the related solutions below for some common license manager errors.
Note that this command will only show a single license manager error. Sometimes, especially with network licenses, there are multiple license manager errors occurring. MATLAB will only print the last license manager error received. If this is a network license, more information can be found in the license manager log file.
If you need further assistance, contact Installation and Licensing technical support: https://www.mathworks.com/support/contact_us.html

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Manage Products에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by