How to split a matrix

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 24 de Mayo de 2018

0 votos

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{:}

Categorías

Etiquetas

Preguntada:

el 24 de Mayo de 2018

Respondida:

el 24 de Mayo de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by