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:
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.