How do I reverse a vector?
显示 更早的评论
For example, how would I change x=[1 2 3 4] to x=[ 4 3 2 1]?
回答(1 个)
Roger Stafford
2015-2-16
x = fliplr(x);
类别
在 帮助中心 和 File Exchange 中查找有关 NaNs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!