フィルターのクリア

how can i split 30*9 matrix into 20*9 and 10*9?

2 ビュー (過去 30 日間)
Ahsen Feyza Dogan
Ahsen Feyza Dogan 2019 年 1 月 16 日
回答済み: StefBu 2019 年 1 月 16 日
X=[5,1,1,1,2,1,3,1,1;5,4,4,5,7,10,3,2,1;3,1,1,1,2,2,3,1,1;6,8,8,1,3,4,3,7,1;4,1,1,3,2,1,3,1,1;8,10,10,8,7,10,9,7,1;
1,1,1,1,2,10,3,1,1;2,1,2,1,2,1,3,1,1;2,1,1,1,2,1,1,1,5;4,2,1,1,2,1,2,1,1;1,1,1,1,1,1,3,1,1;2,1,1,1,2,1,2,1,1;
5,3,3,3,2,3,4,4,1;1,1,1,1,2,3,3,1,1;8,7,5,10,7,9,5,5,4;7,4,6,4,6,1,4,3,1;4,1,1,1,2,1,2,1,1;4,1,1,1,2,1,3,1,1;
10,7,7,6,4,10,4,1,2;6,1,1,1,2,1,3,1,1;7,3,2,10,5,10,5,4,4;10,5,5,3,6,7,7,10,1;3,1,1,1,2,1,2,1,1;5,10,10,8,5,5,7,10,1;
1,1,1,1,2,1,3,1,1;5,2,3,4,2,7,3,6,1;3,2,1,1,1,1,2,1,1;5,1,1,1,2,1,2,1,1;2,1,1,1,2,1,2,1,1;1,1,3,1,2,1,1,1,1];

採用された回答

StefBu
StefBu 2019 年 1 月 16 日
Hi, you can use this two lines.
X_1 = X(1:20,:)
X_2 = X(21:end,:)
Greetings Stefan

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by