How to move elements of a vector
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'd want the code that given the vector A
A=[ 1 2 4 3 0 1 5 3 7 9]
returns
A=[ 1 2 3 4 0 1 3 5 7 9]
thanks
2 commentaires
Image Analyst
le 25 Nov 2018
There are many possible ways, like using deal(). What is your rule for the new order?
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!