MATLAB: How to get a license feature name for a toolbox in ver

How do I get a license feature name for a toolbox in ver?

Best Answer

To determine a license feature name for a toolbox in ver you can run the following command in MATLAB:
com.mathworks.product.util.ProductIdentifier.get('Insert Product Name Here').getFlexName
This entire command is case sensitive and the toolbox name must be in single quotes. It must appear the same way as is does in ver.
This works both ways, where the following command fetches the product identifier associated with license feature Insert_Feature_Name_Here.
com.mathworks.product.util.ProductIdentifier.get('Insert_Feature_Name_Here')