Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How can I obtain another vector for a known vector, such that the elements of the new vector are the time that the element at the corresponding position in the known vector appears in it, without using loops?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
For example, if A=[1 2 3 4 5 6], then B=[1 1 1 1 1 1]; if A=[1 1 2 2 3 3], then B=[1 2 1 2 1 2]; if A=[1 1 1 3 4 3], then B=[1 2 3 1 1 2]; ...and so on. I'd like to fulfil this without using loops.
0 Kommentare
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!