How to split a matrix

4 Ansichten (letzte 30 Tage)
Srijeet Tripathy
Srijeet Tripathy am 24 Mai 2018
Beantwortet: Fangjun Jiang am 24 Mai 2018
How can I split a 1200X2 matrix into three serial 400X2 matrices?

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 24 Mai 2018
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{:}

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by