CHECKOUT_LICENSE checkout Matlab license

NOTE: checking out a license holds that license as long as Matlab is running. This could impact other users at an institution with a limited number of networked licenses. Only use this function at point-of-use, that is, when it's certain the function next called requires this license to be checked out.

A simpler way is to just use the desired function enclosed with try-catch

This function better tells that a function can be used rather than just checking if the relevant toolbox is installed.