Move elements of a vector to the rigth.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Julen Vicente Pipaon
am 27 Mär. 2021
Kommentiert: Julen Vicente Pipaon
am 27 Mär. 2021
Hi.
I want to know how I move all the elements of a vector to the rigth.
For example:
[0 0 0 1 0 0] =====> [0 0 0 0 1 0]
or
[ 1 2 3 4 5] =====> [ 5 1 2 3 4 ]
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!