How to rotate a vector
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Guendouz walid
il 23 Gen 2023
Commentato: Guendouz walid
il 23 Gen 2023
Hello ! I wonder if anyone has an elegant way to rotate a vector to create symmetry for Example:
[110 120 130 140 150 160 180]
to
[180 160 150 140 130 120 110]
Thanks in advance!
Walid
0 Commenti
Risposta accettata
Askic V
il 23 Gen 2023
Spostato: Fangjun Jiang
il 23 Gen 2023
If you want to reverse elements, then just use flip function.
v = 1:10
v_f = flip(v)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!