coder.MATLABCodeTemplate.getTokenValue
Class: coder.MATLABCodeTemplate
Namespace: coder
Get value of token
Syntax
tokenValue = getTokenValue(tokenName)
Description
returns
the value of the specified token.tokenValue = getTokenValue(tokenName)
Input Arguments
| Name of token Default: empty |
Output Arguments
Examples
Create a MATLABCodeTemplate object with the default template, then get the value for a token.
newObj = coder.MATLABCodeTemplate;
% Creates a MATLABCodeTemplate object from the default template
newObj.getCurrentTokens()
% Get list of current tokens
newObj.getTokenValue('MATLABCoderVersion')
% Check value of a token