how to create a vector with known indices numbers
Ältere Kommentare anzeigen
I have
vector = [1 3 4 6 7 7 8 90 8]
positions = [1 5 8]
How can I write a new_vector having the same lentgh as vector positions and containing the numbers of vector in the corresponding positions?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Vehicle Dynamics Blockset finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!