addstate
Syntax
Description
adds one or more states and the associated metadata information to the input graph specified
as a stateIDs
= addstate(graph
,states
,metadata
1,...metadata
N)navGraph
object. Use
this syntax if the states table of the input graph contain multiple columns that include
metadata such as Names
, in addition to the state vectors. However, the
first column of the table must always specify the state vectors.
[
also returns stateIDs
,status
] = addstate(___)status
, indicating whether the new states were successfully
added to the graph. If the newly specified states or state names conflict with the existing
states or state names in the graph, the function ignores the conflicting states and the
existing states remain unchanged.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2024aSee Also
addlink
| rmstate
| rmlink
| findlink
| findstate
| index2state
| state2index
| successors
| show
| copy