How do I reverse a vector?

4 ビュー (過去 30 日間)
Arthik Adla
Arthik Adla 2015 年 2 月 16 日
回答済み: Roger Stafford 2015 年 2 月 16 日
For example, how would I change x=[1 2 3 4] to x=[ 4 3 2 1]?

回答 (1 件)

Roger Stafford
Roger Stafford 2015 年 2 月 16 日
x = fliplr(x);

カテゴリ

Help Center および File ExchangeNaNs についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by