How to rotate a vector
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Guendouz walid
am 23 Jan. 2023
Kommentiert: Guendouz walid
am 23 Jan. 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 Kommentare
Akzeptierte Antwort
Askic V
am 23 Jan. 2023
Verschoben: Fangjun Jiang
am 23 Jan. 2023
If you want to reverse elements, then just use flip function.
v = 1:10
v_f = flip(v)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interactions, Camera Views, and Lighting finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!