How to split a matrix

5 ビュー (過去 30 日間)
Srijeet Tripathy
Srijeet Tripathy 2018 年 5 月 24 日
回答済み: Fangjun Jiang 2018 年 5 月 24 日
How can I split a 1200X2 matrix into three serial 400X2 matrices?

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2018 年 5 月 24 日
A=reshape(1:24,12,[]);
B1=A(1:4,:)
B2=A(5:8,:)
B3=A(9:12,:)
C=mat2cell(A,[4,4,4],2);
C{1}
C{:}

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by