stateVector.assertValidNames
Throw error if variable names are not valid
Syntax
Description
obj.assertValidNames(names)
Throws an error if specified variable names are not valid for the current state vector object. Names are not valid if they are 1. Not valid MATLAB variable names 2. Not unique, or 3. Duplicate existing variables in the state vector.
Customize header in thrown error IDs.
Input Arguments
names
string vector
The variable names being checked
header
string scalar
Header for thrown error IDs