How to split a matrix

1 次查看(过去 30 天)
Srijeet Tripathy
Srijeet Tripathy 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 CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by