Move elements of a vector to the rigth.
1 view (last 30 days)
Show older comments
Julen Vicente Pipaon
on 27 Mar 2021
Commented: Julen Vicente Pipaon
on 27 Mar 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 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Robotics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!