is their any command to change the positions of elements of vector ie if a=[4 5 3 8 1] i want to rearrange it to [1 8 3 5 4]

1 回表示 (過去 30 日間)
is their any command to change the positions of elements of vector ie if a=[4 5 3 8 1] i want to rearrange it to [1 8 3 5 4]

採用された回答

Birdman
Birdman 2017 年 11 月 22 日
flip(a)

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by