MATLAB: How to check which toolboxes are used in the MATLAB files in MATLAB

functionsinlicenselicense('inuse')MATLABtoolboxuse

I have a MATLAB file that I wish to distribute to other users. I would like to inform users which toolboxes are needed to run my MATLAB file.

Best Answer

The ability to determine which toolboxes are used in a MATLAB file has been added for MATLAB 6.5 (R13). You can check the licenses that have been checked out by using the LICENSE function. You can do so by following these steps:
1. Start MATLAB.
2. Run the MATLAB file in which you wish to determine the toolboxes used.
3. Enter the following command in the MATLAB prompt:
license('inuse')