Guys, I have a Matrix X= [A; B; C; D ; E; a; b; c; d; e ; f] each alphabet represents a row matrix with three columns. I want a Matrix X= [ A; a; b; c; B; d; e; f; C; D; E]. How to do it??

 採用された回答

Stephen23
Stephen23 2015 年 2 月 20 日
編集済み: Stephen23 2015 年 2 月 20 日

1 投票

Use MATLAB's rather powerful indexing ability:
X = [...];
X = X([1,6,7,8,2,9,10,11,3,4,5],:);

1 件のコメント

Ace_ventura
Ace_ventura 2015 年 2 月 20 日
Thanx Stephen

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

質問済み:

2015 年 2 月 20 日

コメント済み:

2015 年 2 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by