dash.parse.constructorInputs
Parses inputs to a constructor that accepts size and label parameters
Syntax
Description
Parse the user inputs. Inputs can be 1. Nothing, 2. Size (for unlabeled object array, 3. Labels (for labeled object array, or 4. Size and labels (for labeled object array with label size checking). Throws error if input syntax is not valid. Otherwise, returns the size of the requested object array, and the labels for the array objects.
Input Arguments
inputs
cell vector
The user inputs being parsed
header
string scalar
Header for thrown error IDs
Output Arguments
siz
row vector, positive integers
The requested size of the object array.
labels
string array
Labels for the objects in the array