Extracting sub cell arrays from a cell array

Suppose I have a 10-by-1 cell array consisting of ten 1-by-7 cell arrays. How do I extract the sub cell arrays to get a 10-by-7 array?

 Respuesta aceptada

Guillaume
Guillaume el 2 de Nov. de 2018
Editada: Guillaume el 2 de Nov. de 2018
vertcat(yourcellarray{:})
which will fail if any of the subcell arrays does not have the same number of columns as any of the others.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 2 de Nov. de 2018

Editada:

el 2 de Nov. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by