MATLAB: What is the easiest programmatic test of whether a particular toolbox is installed

toolbox detection

For example, to test whether the Image Processing Toolbox is installed, I might do as follows,
tf=false;
try
s=toolboxdir('images');
tf=true;
end
But is there a more graceful way? And where would I find a master list of the string/keyword correspond to the different toolboxes?

Best Answer

Use "ver" to determine if it is installed. Use license() to determine whether you can get a license for it.