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!