Main Content

coder.MATLABCodeTemplate.getCurrentTokens

Class: coder.MATLABCodeTemplate
Namespace: coder

Get current tokens

Syntax

currentTokens = getCurrentTokens()

Description

currentTokens = getCurrentTokens() returns list of current tokens in the MATLABCodeTemplate object

Output Arguments

expand all

A list of current tokens in the MATLABCodeTemplate object, returned as a cell array of character vectors.

Examples

Create a MATLABCodeTemplate object with the default template, then list its tokens.

newObj = coder.MATLABCodeTemplate;
% Creates a MATLABCodeTemplate object from the default template
newObj.getCurrentTokens()
% Returns a list of tokens for the template