dash.string.elementName
Returns an identifying name for an element in a list
Syntax
Description
Returns a name for an element in a list. If the list has a single element, returns the name of the list. If the list contains multiple elements, references the index of the named element.
Input Arguments
index
scalar positive integer
The index of an element in a list
listName
string scalar
The name of a the list
listLength
scalar positive integer
The number of elements in the list
Output Arguments
name
char row vector
An identifying name for the indicated element