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.

obj.assertValidNames(names, header)

Customize header in thrown error IDs.


Input Arguments

names

string vector
The variable names being checked