MATLAB: Is there a function that returns true or false if a running MATLAB has the Parallel Computing Toolbox installed

Parallel Computing Toolbox

I would like to determine in the code i'm running if the PCT is installed. Since the Parallel Computing Toolbox may not be installed, the function would have to be in base MATLAB.

Best Answer

One way to determine if the Parallel Computing Toolbox installed is to run a test on the license, like in the following code.
license('test','distrib_computing_toolbox')