Extracting sub cell arrays from a cell array

11 vues (au cours des 30 derniers jours)
Sam Smith
Sam Smith le 2 Nov 2018
Modifié(e) : Guillaume le 2 Nov 2018
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?

Réponse acceptée

Guillaume
Guillaume le 2 Nov 2018
Modifié(e) : Guillaume le 2 Nov 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.

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by