stateVector.append
Appends a second state vector to the end of the current state vector
Syntax
Description
Appends the variables in a second stateVector object to the end of the current stateVector object.
Specify how to respond when variable names are repeated across the two state vectors.
Input Arguments
vector2
scalar stateVector object
The state vector to append to the current state vector.
responseToRepeats
scalar integer
Indicates how to treat repeated variable names across the two state vectors.
[0 | “e” | “error”]: Throw an error if variable names are repeated
[1 | “f” | “first”]: Keep the variable from the current state vector and discard the variable in the second state vector.
[2 | “s” | “second]: Keep the variable in the second state vector and discard the variable in the current state vector.
Output Arguments
obj
scalar stateVector object
The state vector updated to include the appended variables.