How to rotate a vector
5 次查看(过去 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!