How to rotate a vector
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Askic V
2023 年 1 月 23 日
移動済み: Fangjun Jiang
2023 年 1 月 23 日
If you want to reverse elements, then just use flip function.
v = 1:10
v_f = flip(v)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!