stateIDS = state2index(graph,states)
finds the state indices stateIDS for the queried state vectors
states, if they exist in the navGraph object
graph.
The navGraph states table contains a state corresponding to the first state data, so the function returns its index. However, the states table does not contain a state that corresponds to the second state, so the function returns 0.
State vectors, specified as a matrix in which each row represents a state vector.
The state vectors must be of the same size as those in the
StateVector column of the States table
in the navGraph object
graph.
State indices, returned as a column vector of positive integers. When the function
does not find a specified state vector, the value for the corresponding element in
stateIDS is 0.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.