How can I obtain a feature name or product name within MATLAB?

I need to obtain the Feature Name or the Product Name of a toolbox in MATLAB, how can I do that?

 Accepted Answer

MathWorks' license files contain both a “Product Name” and a “Feature Name" for each of our Products. The product name is the common name of a Toolbox or Product as displayed by running the command ver in the MATLAB Command Window. You may need to use the Feature Name of a product or toolbox in various MATLAB commands, such as testing a license as provided in our Answer below:
How do I run a license checkout of a Toolbox?
To obtain the Feature Name in MATLAB, run the following command in the Command Window:
com.mathworks.product.util.ProductIdentifier.get("<Product Name>").getFlexName
replacing <Product Name> with the product you are looking to get the feature name for, as displayed in the command ver
For example, to obtain the Feature Name of MATLAB Parallel Server:
This can also work in reverse as well by removing “.getFlexName” and typing in the Feature Name in place of the <Product Name>:
com.mathworks.product.util.ProductIdentifier.get("<Feature Name>")
For example, to obtain the Product Name of MATLAB Parallel Server:

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!